C++ is a general-purpose programming language.

learn more… | top users | synonyms

7
votes
1answer
3k 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
1answer
136 views

Install newly developed app on Ubuntu Touch device

Host OS: Ubuntu 12.04.4 LTS Ubuntu Touch Device: Nexus4 Running Ubuntu 13.10 My dev environment is QtCreator with the ubuntu-sdk plugin I'm trying to deploy the QML / C++ sample app (the one ...
2
votes
3answers
4k views

IDE/Compiler for C or C++ Programming [duplicate]

Is there any software that supports on C or C++ Programming? Then, if it so, how to run, compile or debug your own code to display its output via terminal(linux/ubuntu) or cmd(windows)
1
vote
1answer
246 views

Bad symbols on my eclipse C++ installation

http://stackoverflow.com/questions/9131763/eclipse-cdt-c11-c0x-support I come from that website. I have a C++ project that compiles with g++-4.8 without problems. I just wanted to use std::int8_t ...
1
vote
0answers
43 views

Develop apps for Ubuntu touch: Learning by doing [duplicate]

I really want to develop apps for Ubuntu touch. I have set up the Ubunut sdk and i am currently reading tutorials about qml but one will not learn programming by reading books or tutorials so i am ...
0
votes
1answer
356 views

ImageMagick linking error with libfpx.so: undefined reference to

I was trying to add support for the FlashPIX format in my own build of ImageMagick. In order to achieve this I downloaded the sources libfpx-1.3.1-3.tar.gz from the ImageMagick FTP server for ...
0
votes
1answer
712 views

Executing C++ program on Geany

I recently installed Kubuntu 12.04 LTS and I'm fairly new to Geany. I've used it on other computers but never installed it myself until now. Now, I have C++ code that I've run on other machines (also ...
1
vote
1answer
287 views

c++ Programme compiled successfully but unable to run

I compiled the program using gpp it was done successfully but when I tried to run the program I got these errors:- I have included using namespace std; in 3'rd line harish@harish-Lenovo-G580:~$ gpp ...
-3
votes
3answers
399 views

C++ Passing by Reference Programming [closed]

Write a C++ program that incorporates two user-defined functions using parameter passing and performs addition and subtraction of two numbers. Both the input and output are carried in the main ...
2
votes
0answers
1k views

Problems installing gcc for cross compiling for ARM

I've been trying to install the gcc-arm-linux-fnueabi package, and I've done it a few times by a few different methods but I always seem to be missing the c++ folder in the includes directory. To ...
-1
votes
2answers
350 views

compiling a c++ program

I tried to compile a cpp program through the terminal on 13.04 but got this message: npg@NPG-ideaPad-S210:~$ gcc -o comp-LCG.cpp The program 'gcc' can be found in the following packages: * gcc * ...
2
votes
1answer
204 views

Which package to install to use C/C++ compiler with Eclipse

I want to develop C/C++ applications using Eclipse: should I install using sudo apt-get install build-essential or sudo apt-get install gcc
0
votes
1answer
188 views

how to change directory to a local drive ..in terminal?

i am a new Linux Ubuntu user. I want to save my c++ programs in a local drive. I know how to change directory and mkdir in terminal but i don't know how to switch local drives.
-1
votes
1answer
378 views

List containing functions used in C/C++ for Ubuntu's GCC/CC? [closed]

I'm new to programming. What I want is to know as much about programming as I possibly can, and start off with what people say is a good start: programming with C. I have this PDF called "Teach ...
-1
votes
1answer
192 views

Ubuntu terminal commands and usage [closed]

I just got Ubuntu 12.04 yesterday and would like to learn how to use the terminal. The reason why is because I'm a developer and I'm trying to get any applications I develop supported on linux. From ...
-6
votes
2answers
125 views

programming c++ [closed]

Heyy Can somebody help me with c++? I know this is maybe not the best place but I don't find anything on the web. So i want to do a if-statement like this if(*it == '\') { //do something } ...
0
votes
1answer
521 views

finding amount of memory usage of a command in bash

I wrote a program and now I need to measure it's performance so I use time to find timings but is there any command like time that I could run my program under it and have the amount of memory used by ...
0
votes
2answers
210 views

PASCAL/FORTRAN/C++ compilers

I am retired and having some time on my hands, got out my old DATA STRUCTURES textbooks from the 80s. I got to thinking how much I would like to revive my skills in PASCAL/C++ and use the techniques ...
1
vote
0answers
436 views

A right path to CPP SDK for using it in IntelliJ Idea's cpp-project

I can't find the right path to CPP SDK which is required by IntelliJ Idea, IDE I want to use for development a C++ project. Could someone show me the right place? screenshot here ...
1
vote
1answer
54 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
965 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
117 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
1answer
123 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
2answers
5k 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
1answer
7k 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 ...
0
votes
5answers
10k views

Would Microsoft Visual studios C++ 2010 work on Ubuntu?

I want to use Ubuntu but I'm not sure if it will work for Microsoft Visual Studios C++ 2010. Or is there another program that will work on Ubuntu that will work just as good (if not better) than ...
1
vote
1answer
624 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). ...
1
vote
0answers
314 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 ...
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.
4
votes
5answers
24k views

Eclipse Juno C++ error: Program “g++” not found in PATH

I installed the newest Eclipse Juno manually (not through software center nor apt-get), and then install Eclipse CDT from the help > install new software menu. However, when I try to compile a simple ...
1
vote
1answer
2k 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 ...
3
votes
1answer
986 views

geany cannot run file built by g++ on kubuntu

I used geany and g++ on Ubuntu, they were working just fine. But now I just installed Kubuntu, and geany just doesn't work as usual. Geany builds and compiles with g++, but it cannot run the file. ...
4
votes
0answers
786 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; } ...
0
votes
2answers
57 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 ...
1
vote
3answers
225 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 ...
1
vote
1answer
107 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 ...
4
votes
0answers
418 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", ...
0
votes
1answer
417 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
497 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
149 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).
20
votes
3answers
4k 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 ...
3
votes
1answer
9k 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
569 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
371 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
5k 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
234 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 ...
5
votes
3answers
802 views

How can I use code or a script to lock my screen programmatically in Lubuntu?

I want to write code or a script to lock the PC when my C++ program receives a specific command from Ethernet. Is there any way to show the Login screen from the command line? I want to lock the ...
4
votes
2answers
2k 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
604 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 ...