C++ is a general-purpose programming language.

learn more… | top users | synonyms

0
votes
1answer
574 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
2k 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
99 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 ...
6
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. ...
3
votes
3answers
552 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
4k 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 ...
1
vote
2answers
218 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
5k 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
248 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
62 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
1answer
8k 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
1k 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 ...
8
votes
1answer
371 views

Howto create a new C++ based Ubuntu touch project in Ubuntu SDK?

There is no option to start a C++ and QML based project in Ubuntu SDK. It only offers to create a QML project with no C++ codes. If I try to add C++ classes to the QML project, I get this error: ...
0
votes
3answers
3k 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 ...
4
votes
0answers
700 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
547 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
1answer
91 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
184 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
2answers
54 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
381 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
1answer
142 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).
4
votes
0answers
404 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", ...
2
votes
1answer
8k 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
1answer
355 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 ...
2
votes
2answers
16k 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
506 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
305 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?
1
vote
0answers
4k 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
207 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 ...
6
votes
1answer
72k 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 ...
2
votes
1answer
6k 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
365 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
110 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
307 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
1k 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
432 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
5k 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 ...
1
vote
1answer
143 views

C++ graphic on Geany + Xlib + BadAlloc = destroyed Friday

I have been trying to run a C++ program using Geany, and now, after ages of coding, I want to test the program. This is what comes up: Xlib: extension "NV-GLX" missing on display ":0". X Error of ...
0
votes
1answer
107 views

How i can open (.it) file?

I am doing a Project in Communication field by using Ubuntu 13.04. The project executed by simulation and the output will be in the format of .it files. some body could help me , how can I open ...
1
vote
1answer
1k views

MAC OS X virtualization with KVM on the mac mini : seabios error

Since I'm a legal owner of the first generation of Mac Mini with a regular Snow Leopard license,I'm trying to follow this tutorial with the goal to virtualize Mac Os X with KVM on the second part of ...
1
vote
1answer
69 views

What are some Ubuntu projects to contribute?

I decided to take part upon developing Ubuntu applications although I am having trouble finding projects to contribute in C, C++, C# and Java at Launchpad (not necessarily Launchpad alone). Can you ...
1
vote
1answer
342 views

GtkSourceView in Glade and C++

I try to develop a text editor in C++ and Gtkmm using Glade but I have a problem. When I try to run the program, I have the following message:"BuilderError: Invalid object type `GtkSourceView'". I ...
1
vote
1answer
69 views

Start application in the background on GNOME

Is there a way to avoid bringing an application to the front when opening it? I'm launching an app several times trough a terminal window (running a custom c++ program) and it keeps popping up when ...
0
votes
1answer
1k views

How do I set up pretty printing gdb 7.5

I thought gdb 7.0 and higher has pretty printing included in it but I might be wrong? Can someone point me to the correct way to use this? Do I need to create a .gdbinit file for this? I tried copying ...
1
vote
1answer
2k views

How to install cocos2dx on Ubuntu 13.04?

I have Ubuntu 13.04 on my laptop. I need to install cocos2dx on it. Does any one know how to install it? Please explain how to install.
1
vote
1answer
281 views

Is Ubuntu more suited for Python based apps?

My question is simple. Is Ubuntu more optimized for text editor-like programs (Libre Office, Sublime Text, etc.) written in Python or not? Or there is no difference if I use C++, Python or Java in ...
1
vote
1answer
3k views

Modification of stack size by ulimit -s

When I type ulimit -s in terminal it shows 8192. Does it mean that in my C code I could only have local variable of 8192 bytes? I am confused which stack size. Does ulimit -s change when we modify ...
4
votes
1answer
607 views

Arrow keys in Terminal shortcut don't work

I am new to Linux and am using Ubuntu 13.04. I have a C++ program named "dictionary" (full path: /home/anmol/Desktop/c++/dictionary), which I compiled with Code::Blocks IDE (and GCC version 4.7.3). ...
19
votes
3answers
3k views

Is it possible to use Python with the Ubuntu SDK?

David Planella wrote in his answer to a question I posted that: ...the recommended way to develop apps for Ubuntu is the Ubuntu SDK. So I installed it, but looks like the supported programming ...
0
votes
1answer
455 views

Help with GDB on a C++ program

I am new to Ubuntu and am using the 12.04 version on my laptop. I am trying to execute a C++ program which has Petsc libraries installed in it. I get an error when trying to run the program and so ...