Tagged Questions

C++ is a general-purpose programming language.

learn more… | top users | synonyms

0
votes
1answer
15 views

/usr/lib/i386-linux-gnu/libmysqlclient.so.18: no version information available

I wrote a program in C++ (QtCreator) on Ubuntu 14.04 LTS which reads values from Web-API's (curl) and stores them in a MySQL Database (using the MySQL C-API). When I start the program on my Desktiop ...
0
votes
0answers
14 views

eclips luna c/c++ on ubuntu 14.04

I have installed Eclips Luna for Linux but when I run a simple program a window is shown Launch failed .Binary not found I have tried two methods 1) Windows > Preferences > C/C++ > New CDT project ...
-1
votes
0answers
16 views

GNU GCC Compilor error “multiple definitions of main” [on hold]

I am new to ubuntu, now I need to develop my assignment in C++. I am using codeblocks IDE to write c++ programs. Whenever I compile something in it, it gives these errors: multiple definition of ...
0
votes
1answer
18 views

Executable not created upon compilation using Dev C++ on Wine

I recently installed Wine so that I could run and use Windows applications in an Ubuntu environment. However, after I installed Dev-C++ version 5.4.1 , I found that I could write and compile programs ...
0
votes
0answers
10 views

libraries for c++ development [duplicate]

I am a student and switched form windows to linux just a few months ago. I don't know anything about the paths and libraries in linux. Now I need to work on c++. I need an IDE and compiler that can ...
0
votes
0answers
16 views

Starting with SDL

Hy, i want to start learning/developing with the SDL library. I already found some usefull tutorials like lazyfoo.net. There I noticed there are many ways to use SDL (Console, IDE, ...). So can you ...
1
vote
1answer
15 views

Add external library to Ubuntu App in Ubuntu SDK

I am trying to add the QuaZip library to my project (https://launchpad.net/vadetux). I have tried setting the EXEC variable in the CMakeLists.txt to: set(EXEC "qmlscene -I /usr/include/quazip $@ ...
3
votes
0answers
52 views

What component is responsible for tray and how to manipulate it using C++?

My goal is to write a desktop gui application that will utilize these commands found in http://askubuntu.com/a/14083/18330 pacmd list-sinks to list name or index number of possible sinks pacmd ...
0
votes
1answer
41 views

How to compile C/C++ program with GStreamer

I'm trying to compile this code: #include <stdio.h> #include <stdlib.h> #include <gst/gst.h> int main (int argc, char *argv[]) { const gchar *nano_str; guint major, ...
1
vote
1answer
66 views

Problems when running OpenGL c++ programs with with nVidia Driver 331 installed

I am using Ubuntu 14.04 with nVidia Driver installed. When I try to run the very basic GL tutorial. And build it with g++ -Wall -std=c++0x -o "tutorial" "tutorial.cpp" -lglut -lGLEW -lGL #include ...
-1
votes
0answers
24 views

Hostname doesn't change line after c++ result on terminal

I'm new to c++ programming and Linux; after I run the famous "Hello World" program in the terimal, the host name remains attached to the answer like this: Hello Worldhost@name Can anyone help me out ...
0
votes
0answers
40 views

How to install C++ libraries in Ubuntu 14.04

I've been searching for a couple of hours but I haven't found anything yet. I want to know which is the preferred method for installing C/C++ libraries in Ubuntu 14.04. Is there a CLI command or ...
-1
votes
0answers
79 views

Dynamic library inconsistencies with OpenGL/C++ & nVidia & freeglut

I am using Ubuntu 14.04 with nVidia Driver installed. When I try to run the very basic GL tutorial. And build it with g++ -Wall -std=c++0x -o "tutorial" "tutorial.cpp" -lglut -lGLEW -lGL #include ...
0
votes
0answers
26 views

c++ compiler errors using make across multiple projects

I'm trying to install an LC3 assembler for school. I run the config script and type make and a several weird compiler errors pop up. I tried this building simpl and just now lc3db Here's output (the ...
0
votes
0answers
15 views

No SDLIMAGE found while running ./configure file

recently i installed libsdl1.2-dev to install a game, after installing it in system. I run ./configure file and I am getting new error checking for sdl-config... /usr/bin/sdl-config checking for SDL ...
0
votes
2answers
48 views

How to install Extreme tux Racer

I have extracted down Extreme tux racer in my home folder, after extracting it in same folder, i run commands- ~/game/autorun.sh ~/game/./configure then following commands run- checking for a ...
0
votes
0answers
60 views

HelloWorld doesn't work in Eclipse

I just installed both eclipse and eclipse-cdt and tested it with "HelloWorld" in C++ perspective. It reported "cout wasn't declared in this scope". Then I used a texteditor to write exactly the same ...
0
votes
0answers
65 views

C/C++ Query EDID at boot time

I'm looking for a way to query EDID data at boot time on my Android system. I think I can use ioctl calls and I see that the frame buffers are at /sys/class/graphics/fb*. But currently I'm just ...
1
vote
1answer
22 views

Cannot install g++ 4.8 on OpenVZ

I have everything set, but doing apt-get install g++4.8 gives me the following java (!?!?!?) related error. Setting up ca-certificates-java (20110426ubuntu0.10.04.2) ... Error occurred during ...
1
vote
1answer
52 views

How do you use Q_INVOKABLE to access c++ functions in QML?

I am looking for the most simple and straightforward example. For my part; .h public: KTerminalDisplay(QQuickItem *parent = 0); ~KTerminalDisplay(); Q_INVOKABLE void setFontStyle(QString & s); ...
0
votes
0answers
178 views

Code Blocks dialog when build: “It seems that this file has not been built yet”

I have a problem when I use Code Blocks to program C++ on Ubuntu, when I press run, a dialog appeared: "It seems that this file has not been built yet" with three option: No, Cancel or Yes. If I ...
0
votes
1answer
42 views

How to use GDB to trace C++ library?

Recently, I want to use GDB to debug my C++ program. But I find when I use CTRL+X+A to see the source code of my program, it cannot show the library code of C++. For example, when I want to trace ...
-1
votes
1answer
63 views

how to install downloaded g++4.8 deb archive in ubuntu 14.04 lts?

I have installed Ubuntu 14.04 LTS. The g++ compiler is missing in it. So, I downloaded g++ 4.8 deb archive. But I am not able to install it. ehn I open the package, ubuntu software center opens up and ...
0
votes
1answer
27 views

Can I remove cpp from Ubuntu without causing any issues?

I have a C++ compiler installed on a Ubuntu server I am using as a LAMP stack. Will it cause issues for me to remove C++?
0
votes
0answers
153 views

Skipping incompatible error when compiling mysql library using arm-linux-gnueabihf

All problems posted related to mysql library use standard gcc compiler. However, I need to compile a project running on a beaglebone black device. Hence, I am using arm-linux-gnueabihf-gcc instead of ...
0
votes
0answers
18 views

building problem with boost after upgrading ubuntu

I have a code that i can build and everything was working until I decide to upgrade my version of ubuntu for the 14.04 one. Now I have this kind of error messages : ...
1
vote
1answer
100 views

Separate terminal windows for input and output streams

How do I use different xterm or terminal windows for input and output streams while programming in C++ such that I enter input in one terminal window and get output in another window?
0
votes
0answers
35 views

c++ debug jump back netbeans and eclipse

All the latest netbean ide and eclipse ide for c++ open some project and then rebuild and debug, it will somehow jump back to somewhere when I press step over,like this (from 44 to 40): Can ...
1
vote
0answers
82 views

clang++ fails to compile simple hello world c++ program

After upgrade to 14.04 from 12.04 clang++ stopped working. $ cat test.cpp #include <iostream> int main() { std::cout << "Hello World" << std::endl; return 0; } $ ...
2
votes
1answer
55 views

How do I create simplistic window-like elements in a command-line program?

When I execute sudo dpkg-reconfigure lightdm in the terminal I see a simplistic window-like listmenu. Is there an way to make something like that in C++? This looks something like:
1
vote
0answers
49 views

Developing 32 bit application and using it in 64 bit Ubuntu 14.04

I would like to develop 32 bit c++ applications on an Ubuntu 14.04, 64 bit machine and use it on both 32 bit and 64 bit machines. One of the main difficulties I face is that I use some library which ...
4
votes
3answers
536 views

How can I know that I have g++ installed in my ubuntu? [duplicate]

I have recently installed ubuntu 14.04 . I tried to run a c++ code by a command like this: g++ first.cpp -o first Then it said: The program 'g++' is currently not installed. You can install it by ...
0
votes
0answers
18 views

How to connect a Button to FileDialog function in ubuntu sdk?

I've just started to deploy my first application for Ubuntu using QtCreator 3.1.1 based on Qt5.2.1 on Ubuntu 14.10.. I need to open some video files, so I'm going to put a Button to choose file ...
0
votes
1answer
137 views

How do you get C++ to compile from Code::BLocks? (Beginner to Linux)

So I just recently installed Linux after using Windows for my whole life. I also just installed the C++ IDE named code::blocks using the following command in the terminal: sudo apt-get install ...
0
votes
0answers
28 views

C++ mounting samba share with glibmm

I'm trying to mount samba shared folders with C++. I found that with glibmm library I can do that, but I can't find any examples or tutorials. Somebody could post some example code? Thanks.
0
votes
0answers
23 views

Qt-> how to set ALT key active

Can someone please explain how to set the Alt key as active permanently? I'm trying to make an application for Ubuntu and I need to make it active. I want to add it to the code below in the if ...
1
vote
1answer
150 views

Codeblocks set up?

Hi I am looking to set up code blocks IDE to dev C++. I have installed it and used it to do a first hello world app. I tried to compile and run but it has a debugger and what appears to a link ...
2
votes
0answers
83 views

lock/unlock events for in C++ app which should not depend on screen savers

We have a product, which was developed for Windows. Because of customer request we are developing it for Linux also. So being a beginner to Linux, have migrated most of it (which I loved it). Now got ...
3
votes
0answers
122 views

How to create an Ubuntu Touch app with a C++ backend and a QML interface [closed]

I'm looking forward to the release of Ubuntu Touch and thought it would be nice to contribute a small and free app that I'm also using now on my Android phone. The free and open source app for ...
0
votes
1answer
117 views

Communication between JS and C++ process on Ubuntu platform [closed]

We develop board on Ubuntu platform using Ubuntu SDK which contains 2 parts - 2 differrent processes: 1. GUI 2. Business Logic - implemented as C++ process There should be a bidirectional ...
0
votes
0answers
27 views

Prolog-C++ inteface doesnt work

I want to use prolog in C++ as a knowledge base or logical service(Embedded prolog in C++). I've searched alot but found nothing which can help me. I also checked the official link: ...
0
votes
2answers
180 views

Eigen installation seemed to work, but I still can't make eigen work

I am trying to install eigen, but I don't seem to get it to work. I did: sudo apt-get install libeigen3-dev and everything seems fine, after dpkg -p libeigen3-dev I get: Package: libeigen3-dev ...
0
votes
0answers
50 views

excel query in qt

I have a program to connect with excel file. my excel file contains usernames and passwords of users who has access Permission to application. in interface of the program i have two QlineEdit(one for ...
1
vote
2answers
167 views

read from text file in qml qt/quick

I have a program to preview images that store every image's path (all images are in my computer) in text file. first i open text file and read line by line images paths and store to a list then i ...
0
votes
1answer
112 views

Read lines from a text file in QML Qt/Quick

I need open a text file and read it's contents line by line and store each lines in a string list in qt quick 2.2. Can every one help me?
2
votes
0answers
63 views

Modifying default KawigiEdit C++ template in Ubuntu 12.10 LTS

I am trying to edit default c++ template of KawigiEdit plugin, but after I configure and save the modified template as default template, there is no effect. Has anyone modified KawigiEdit's default ...
0
votes
0answers
29 views

Qt C++ windowMinimized no reaction on Ubuntu

Heloo all! Me and a friend are creating an app for linux, everyting works but the custom minimize button doesnt whant to work on Ubunutu 14.04, there is no reaction when presed clicked an so on. Any ...
0
votes
0answers
221 views

cmake: Configured compiler /usr/bin/c++ does not support thread local storage

I'm trying to build Geant4. I got some problem on cmake that I have no idea what to do. Whenever I try to build on home directory, everything works just fine. Here's the output: ...
1
vote
1answer
624 views

Cannot find boost-thread-mt library

I am compiling a program which requires boost-thread-mt library. I have installed libboost-all-dev using sudo apt-get install libboost-all-dev but compiler says that it cannot find boost-thread-mt ...
1
vote
1answer
180 views

emit signal with custom type objects array parameter from c++ and receive in qml

I would like to emit a signal from a Qt C++ class which includes a parameter that is an array of custom objects (inherited from QObject) and receive the parameter in its qml slot, but i'm afraid it is ...