C++ is a general-purpose programming language.

learn more… | top users | synonyms

1
vote
1answer
38 views

C++ programs do not get focus when started from launcher in Xubuntu 3.10

My c++ programs run fine in a terminal on Xubuntu 3.10. But when they are started from a launcher, then they do not have the focus. The focus remains with the desktop. These programs use the ...
0
votes
1answer
234 views

Installing libmysql on Ubuntu Server 12.04

I really need help installing the dependency of this, which is libmysql (here) I really have no idea how to install it. The author requires me to put it in a specific directory, but I have had no ...
0
votes
1answer
969 views

How to correctly install libstdc++.so

It seems that no matter how I try, I am unable to install libstdc++.so. My guess is that this is supposed to be a symlink to libstdc++.so.VERSION or something. BUT, no package seems to be ...
0
votes
1answer
80 views

Where are the compiled SDL libraries?

I compiled the SDL 2 libraries as described here What is the general procedure to install development libraries in Ubuntu? What I would like to know, is where are these libraries actually located ...
0
votes
0answers
116 views

Codelite cannot build

I need your help in configuring codelite and clang or gcc or g++. I have installed clang and build essential. that means i have pretty much installed all I need. but codelite cannot build my ...
5
votes
1answer
2k views

Setting up GDB pretty printing in Ubuntu 13.10

I tried to set up GDB pretty printing (for easier work with standard containers) according to this anwer. Instead of using python pretty printers code from svn I used the ones that ship with ubuntu. ...
1
vote
2answers
240 views

Unistall Eclipse installed in /opt

I need Java Eclipse, but accidentally installed the C++ one using the steps from here Installing Eclipse Kepler and Java JDK How do I actually remove the C++ one completely? I tried just removing the ...
1
vote
2answers
2k views

G++ compilation error “cc1plus” not found

I think I accidentally deleted a couple files from my machine, and now G++ won't compile. I tried to apt-get remove it then apt-get install it to see if it would fix it, but it didn't work. Now I have ...
0
votes
0answers
18 views

How can we enable dm crypt keeping existing data onto the disk?

Is there any way to enable dm crypt; keeping the existing data onto the disk partition?
1
vote
2answers
153 views

Setting a hotkey for connecting and disconnecting a network connection in KDE environment

Is there a way to set a hotkey for toggling connection through a network cable: Also if I have a command in command-line that can do this or a piece of C++ code that does this I can set a hotkey ...
0
votes
1answer
3k views

g++ (4.6.1) does not recognize -std=c++11 [closed]

I'm trying to compiling a program (via Make) using g++ 4.6.1 with flag -std=c++11. It's giving me: cc1plus: error: unrecognized command line option ‘-std=c++11’ This is running on Ubuntu 11.04 ...
1
vote
0answers
177 views

How to build and run Concorde and Traveling Salesman Problem? [closed]

I need to use a library that is called Concorde to solve a well known problem called Traveling Salesman Problem. This library is available here I've downloaded and compiled it resulting in two main ...
1
vote
0answers
49 views

Way to catch shutdown event in Unity, Ubuntu 13.04

I'm developing gui application (C++/Qt) and now search for correct(documented) termination way for application. Is there any documentation how Unity DE notifies gui applications to exit (some analog ...
0
votes
0answers
45 views

Socket program didn't recognize client connections

I'm coding a socket program in C++ on ubuntu server. It will grab packet from client, process, and send back new packet (both via port 23101). It works fine when I tested on local computer, but it ...
-1
votes
1answer
7k views

which is the best c++ IDE for ubuntu? [duplicate]

Is there a c++ Integrated Development Environment(IDE) for Ubuntu. I want a IDE similar to turbo c++ in windows.
1
vote
1answer
694 views

How do I use the GTK+ development libraries in Ubuntu?

I've been programming for about a year and a half on Windows and I've just started getting used to the way things work on that platform, but now I'm interested in development on Linux and I've been ...
2
votes
0answers
252 views

Develop in C/C++ for Qt Ubuntu Touch projects

as said in the question I want to develop the code in C or C++ for my Ubuntu apps. I don't feel confortable in Javascript at all, and when I try to create a C or C++ file the IDE returns me Failed ...
0
votes
0answers
136 views

Can't boot Ubuntu 13.10 with OpenCV

I'm developing a c++ project on ubuntu 13.10. To compile this project i need OpenCV and Armadillo libraries. After the OpenCV installation (ver. 2.4.6) Ubuntu doesn't run. During the boot appears a ...
0
votes
2answers
2k views

how to play audio file using c++ in linux

I am coding this c++ program .I want to play audio clip, format dosen't matter , its just I wrote hello word the most basic program of any language but the thing is instead of showing hello world on ...
3
votes
0answers
506 views

clang++ (version 3.3) lacks headers

This seems odd. Take a simple C++ program #include <cmath> #include <iostream> int main(void) { std::cout << "Square root of 9 is " << sqrt(9) << std::endl; } ...
1
vote
1answer
465 views

Is it possible to let gcc 4.7 and gcc 4.8 co-exist in Ubuntu 13.10

I have some development work, it seems that GCC 4.8 will not work well with other development tools, so I may have to stick with GCC 4.7, but I am not sure if this is allowed in Ubuntu 13.10(64bit). ...
0
votes
0answers
639 views

How do I compile with GL/glew.h?

Whenever I try to compile a C++ file using: g++ cgaTOH.cpp I keep getting the following error: fatal error: GL/glew.h: No such file or directory Could someone advise on how to get GL/glew.h ...
0
votes
1answer
67 views

920828 - how to open and build a VS2010 solution in precise?

Is it possible to open a VS2010 solution in an IDE environment and build it and get the same output in ubuntu? I mean pressing F5 runs the program (maybe via Wine) in the same way? I don't mean .Net ...
1
vote
3answers
127 views

Why am I getting these undefined errors when I compile a C++ program in terminal?

I have a C++ program that compiles and runs perfectly in Code Blocks. However when I try to compile it from the terminal using: gcc -g main.cpp -o Main I get a lot of undefined references: And ...
0
votes
0answers
348 views

Cmake unable to find Boost library?

I have already installed Boost in my brand new Ubuntu 12.04 machine. And when I do like this: cmake . I always get the below exception saying: Could NOT find Boost I am not sure what wrong I ...
0
votes
0answers
89 views

I am trying to set up Ubuntu as an IDE for C++

I don't really know how to phrase it, but I am not looking to use an actual IDE (codeblocks, netbeans, eclipse, etc). I have tried to follow several different tutorials, but things keep getting ...
0
votes
2answers
53 views

Application development in Ubuntu using C++

I want to write applications for Ubuntu. I do not know much about programming, but I want develop for Ubuntu. I am trying to learn C++ right now. What do you think is the best way to develop apps for ...
0
votes
1answer
254 views

Why isn't the cppconn folder in /usr/include?

I am new to C++. I am trying to make a MySQL connection. I found that it requires mysql-connector. I installed boost-dev-all . I have put my mysql-connector in local directory ~/bin. I have ...
0
votes
0answers
352 views

Linking a program with Boost using clang-3.4 and libc++?

I'm trying to compile a simple C++ test file using libc++ (instead of libstdc++) and the Boost Program Options library from the Ubuntu main repo. The program is as follows: #include ...
0
votes
1answer
111 views

Unable to compile programs in Ubuntu with Geany

I'm having trouble compiling a simple C++ program in Geany. The result is same even if i just use terminal(not using Geany).
0
votes
0answers
72 views

mysql/c++ connector error

I have encountered the error for connecting mysql from c++ SQLException: Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled) I read some existing ...
4
votes
0answers
380 views

QtCreator creates unwanted windows [closed]

This issue occurs on raring with the build "qtcreator 2.8.1-0ubuntu1~raring1~test1", the latest from the software center. It works fine in general, but if you click on "Welcome" and than on "Develop", ...
1
vote
1answer
5k views

Error : Cannot run C compiled programs. if you meant to cross compile use --host' Ubuntu

I'm completely new to Ubuntu I downloaded and unpacked a tar.gz package, after extraction, it is said in its documentation : "type ./configure --disable-gts" But when I run this command alone it ...
0
votes
0answers
199 views

C++ graphics XCB error - ubuntu 12.04

The code given below runs properly but crashes after few seconds. #include<iostream> #include<graphics.h> using namespace std; int main() { int gd=DETECT,gm; int i,x,y; ...
0
votes
1answer
282 views

log4cxx/logger.h or libcql/cql.hpp fatal error while doing make -j4

I am running make -j4 and I am getting below exception... userName@phx5qa01c-4e23:~/build$ make -j4 [ 1%] [ 2%] Building CXX object nda/common/loadtest/CMakeFiles/loadtester.dir/LoadTester.cc.o ...
0
votes
1answer
6k views

How to install latest cmake version in Linux/Ubuntu from command line?

I am trying to install latest cmake in my linux box and I am always getting the below exception - userName@phx5qa01c-4e23:~/build$ wget http://www.cmake.org/files/v2.8/cmake-2.8.11.tar.gz ...
0
votes
1answer
345 views

Gtk: Webkit WebView C++ (can't load url + awkward terminal output)

I am trying to include a webkit webview within my c++ application. My project uses Glade ui, and I embedded webview into a scrolled window. What I do not understand at all is this awkward output + ...
0
votes
1answer
198 views

Make a c++ project in eclipse

I installed eclipse, jdk ,gcc and g++. When I open eclipse and want to make a new project, I have no option for a c++ project. what do you think?
0
votes
0answers
97 views

ptrace(attach) failing while attaching a thread from another thread (of same process)

1 #include <stdio.h> 2 #include <pthread.h> 3 #include <sys/ptrace.h> 4 #include <sys/types.h> 5 #include <sys/wait.h> 6 #include <unistd.h> 7 #include ...
1
vote
0answers
3k views

Trying to compile Opencv C++ code getting some Reference error [closed]

do we have to give path for OpenCV in Ubuntu 13.04.If so Tell me that also ? This is code : #include "opencv2/opencv.hpp" #include "opencv2/video/video.hpp" #include "opencv2/highgui/highgui.hpp" ...
1
vote
0answers
172 views

Program not running properly when run in terminal

I am running C++ programs using the Gnome terminal emulator in Ubuntu 10.04. The program has a number of steps and I get the program to print something to terminal after every one to tell me how far ...
4
votes
1answer
41k views

How to install g++ compiler?

I have tried the following: sudo apt-get install build-essential Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest ...
0
votes
0answers
263 views

Getting permission denied when building and running c++ files on my flash drive while using a live cd

I'm taking a c++ class and I need to temporarily use a live cd as my regular operating system for my school work because there are serious problems with the operating system of the computer I'm using ...
2
votes
1answer
4k views

Is there any library similar to <conio.h>?

I used the IDE DEV C++ to compile C programs on Windows and I used the libraries and , but now I use Ubuntu and downloaded the Codeblocks, but it does not have these libraries. I just wanted to use ...
1
vote
1answer
277 views

What is changelog.Debian.gz file during packaging?

while packaging I encountered following error dh_builddeb dpkg-deb: building package `remotedevicecontroller' in `../remotedevicecontroller_1.0-1_i386.deb'. dpkg-source -b remotedevicecontroller-1.0 ...
0
votes
0answers
103 views

Not sure which IDE I should use for editing codes written in C [duplicate]

I am looking for an IDE which I can use to edit/compile/run C/C++ codes on my Ubuntu 13.04 installation. I have been checking the forum for information, and I found Anjuta being suggested by a few ...
0
votes
1answer
269 views

can use c++ write custom qml plugins in ubuntu sdk [closed]

Recently, I want to develop a app for ubuntu showdown, but I want to use some plugins use c++. So I want to write custom plugins, then I create a project with qml extension library. However, when I ...
3
votes
2answers
792 views

what is the purpose and role of rules file in debian packaging

I am trying to debian package my C++ application developed with aid of Netbeans 7.3. Here is bit of Makefile of it. APPNAME=remotedevicecontroller install: install config.xml ...
2
votes
1answer
297 views

undefined reference to `GDALAllRegister' [closed]

I have problem with gdal. I am currently working on Ubuntu and the IDE is Eclipse CDT i have given my code below and i have also installed the gdal package but it gives build errors #include ...
0
votes
1answer
4k views

Couldn't find any package by regex libstdc++.so.5 libexpat.so.0 in 32-bit ubuntu 12.04

While installing a software wink, I got stdc++ and lib expat packages not found. prayag@prayag:~/wink$ ./installer.sh Wink requires that the following packages be installed to run properly. Please ...