C++ is a general-purpose programming language.

learn more… | top users | synonyms

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 ...
12
votes
4answers
3k views

Run system commands from QML App

I want to run a system command from inside my application. It's suppose to run a command on a remote server using SSH. But that's not really the point. The point is that I don't know how to run any ...
12
votes
3answers
107k views

What is a command to compile and run C++ programs?

I am new to Linux. I am using Ubuntu 11.04 and do not know how to compile and execute C++ program in it. I need to know the commands to Compile and Execute a C++ program in Linux.
11
votes
2answers
513 views

Can unity places be written in C++?

Is C++ a supported language for writing unity places?
9
votes
2answers
55k views

How to compile C++ source code (“iostream.h not found” error)?

I do not want to discuss about C++ or any programming language!I just want to know what am i doing wrong with linux ubuntu about compiling helloworld.cpp! I am learning C++ so my steps are: open ...
8
votes
3answers
1k views

Download C++ reference

I'm learning C++ and are currently for some weeks without consistently working Internet connection. I search a (ASCII) terminal searchable & readable C++ documentation. Today I e. g. searched for ...
8
votes
2answers
2k views

Unity Launcher API for C++

I am trying to develop some program in QT with QT SDK. Yesterday I was reading about Unity Launcher API on official ubuntu website. But there is example only for Vala and python. Is possible to use ...
8
votes
3answers
5k views

Receiving error while trying to debug in QtProject

I installed the latest version of the QtProject so now I can debug C++ code. While trying to debug for the first time I got this error: ptrace: Operation not permitted. Could not attach to the ...
8
votes
1answer
8k views

How to make Eclipse CDT's Linux GCC toolchain resolve C++ standard library headers?

In Ubuntu 12.04 LTS I installed the Eclipse CDT plugin and opened the new hello world project to just test everything out. When I was creating the project, I chose the only toolchain: "Linux GCC" ...
8
votes
1answer
203 views

apt-get install <package> equivalent using C++ apt-pkg library

I am building a small QT (C++) application where I ask user the software he want to install. Once he selected some packages a, b, c from the list all I have to do is run sudo apt-get install a b c ...
7
votes
5answers
40k views

Can't execute .out files, getting permission denied

I have written a C++ program and complied it to produce a.out file. However, whenever I try to run it, I get Permission Denied. I read that we can use sudo, but I can't quite get it to work. I use ...
7
votes
3answers
2k views

What do I need to start programming? [closed]

I am a brand new engineering student, my teacher told us that we need to program in C++, I am new to programming and to Ubuntu, I am installing the latest version of Ubuntu but I would like to know ...
7
votes
0answers
297 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: ...
7
votes
0answers
305 views

How can I run a command from a qml script? [duplicate]

I'm working on an Ubuntu Touch app that needs to modify iptables and do various other things that requires interaction with the command line. I found this and I understand that it must be done with a ...
6
votes
3answers
5k views

Where do I find an up-to-date version of boost?

Where can I find up-to-date packages for boost on Maverick/Natty/Oneiric/Precise? Ideally, I would like the latest 1.47.0 and be able to update that to the next release when it comes out.
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. ...
6
votes
1answer
7k views

How to add the ncurses.h to a C++ program compiled on gcc?

I am totally new to C++ programming on gcc. I wanted to add color to my text on the output on the console. Since there is no conio.h on linux, I researched and found that ncurses.h could do the trick. ...
6
votes
1answer
3k views

Where to install libraries manually?

I want to install SFML (a free multimedia C++ API) on my Ubuntu system, which basically isn't a problem. But I wanted to know where I should store the files. I can see, that Ubuntu stores my C++ ...
6
votes
2answers
2k views

How to pass the image preview from the QML Camera component to a C++ plugin

I'm writing an Ubuntu Touch QML app that captures and processes images from a camera device. The processing is done by a C++ plugin to which I'm passing the URL of the image. I can successfully save ...
6
votes
1answer
1k views

What is the correct way to use g_signal_connect() in C++ for dynamic unity quicklists?

I want to make my application use dynamic unity quicklists. For building my application I am using C++ and the QtCreator IDE. When a menu action is triggered I want to be able to have access to a ...
5
votes
1answer
59k 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 ...
5
votes
3answers
7k views

Find version of development library from command line?

I installed the c++ boost development libraries using Ubuntu software centre. The problem is that it was quite a long time ago and I cannot remember where they are installed nor what version they ...
5
votes
1answer
962 views

Where is the documentation for programming OpenGL ES for Ubuntu Touch?

How can I program an OpenGL ES program for Ubuntu Touch? I have installed QtCreator and the Ubuntu SDK, but I can't seem to find any documentation about this topic.
5
votes
1answer
353 views

What language C++, Python, or Java is most supported in Precise Pangolin for game development?

I've studied game programming and design in Windows using DirectX, and a bit using Python and PyGame. I would like to start developing some games for Ubuntu. Now I would like to build a game called ...
5
votes
1answer
1k views

Why won't Qt-SDK install?

I just installed Ubuntu 12.04. One of my classes require that I install the Qt libraries and SDK, however, I can neither install the 32-bit or 64 bit version. I changed both into executable files, but ...
5
votes
1answer
254 views

Getting list of installed apps (NOT packages)

How can I get list of installed apps (based at files in /usr/share/applications/) without writing own parser? I need just app name, path to app icon and path to launch app. I'm using C++ with Qt ...
5
votes
1answer
396 views

Accessing Ubuntu's password store using C++

I'm trying to write an application in C++ that uses the Ubuntu One OAuth token stored in the Gnome Keyring, but I can't find any documentation on either the Gnome or Ubuntu One developer sites that ...
5
votes
3answers
608 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
6k views

How do you find libraries(C++) in Ubuntu?

Sorry this is such a beginner question, but I've recently begun programming with C++ on Ubuntu 12.10 and I've installed a few libraries I need to work with, for example PCL and I can't find them to ...
4
votes
3answers
4k views

Compiling C++ inside a folder in Ubuntu 12.04

I have some question about compiling .cpp inside a folder, it says first.cpp No such file or directory but when I run it in home it compiles. Any settings I might have left out? Thanks. Here's ...
4
votes
2answers
152 views

Do i need to know C++ to develop ubuntu app?

I'm a java developer. I dont know much about C++. should i learn C++ to develop ubuntu app? or can develop app without c++?
4
votes
3answers
1k views

How do I compile/run C++ code in the console?

I'm trying to run my C++ code using the console. I used the header file conio.h like I did when I used Turbo C++ IDE in Windows, and I ran the code in console using g++ filename.cpp I have ...
4
votes
3answers
813 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 ...
4
votes
1answer
2k views

I can't compile a C++ program with the g++ command

If I try compiling my C++ source file by the following command: g++ a.cpp it outputs: The program 'g++' can be found in the following packages: * g++ * pentium builder try: sudo apt-get intsall ...
4
votes
5answers
22k 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 ...
4
votes
1answer
14k views

How to install libboost 1.48?

I would like to install the latest Boost C++ libraries onto my 10.10 system using a PPA but cannot find one that works. Nordlöw already suggested good sources in a similar discussion but I could not ...
4
votes
2answers
142 views

Where to find GUI code

I've been rummaging through Unity's source code (Shell Interface) and I was a little curious about something; where in the code are you supposed to find positional code? I'll clarify a bit with some ...
4
votes
0answers
78 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 ...
4
votes
0answers
640 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; } ...
4
votes
0answers
399 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", ...
3
votes
2answers
291 views

Is there any ubuntu API?

in Windows, a programmer can use Windows API to write a Windows application. Windows API can be used with C (not necessarily C++). In Windows API you have a message loop and you have to program ...
3
votes
2answers
8k views

Code::Blocks: g++ not found

Recently I have installed Code::Blocks IDE on my Ubuntu 12.10. The following error appears when I try to run or compile any code written in there: Compiling: /home/sabbir/first.cpp /bin/sh: 1: g++: ...
3
votes
2answers
5k views

Howto install google-mock on Ubuntu 12.10

I am having hard time trying to install Google C++ Mocking Framework. I have successfully run sudo apt-get install google-mock. Then I tried to compile this sample file #include "gmock/gmock.h" int ...
3
votes
2answers
1k views

How can I know which version of the C++ “standard library” is installed?

I would like to install the C++ standard library documentation (following the answers in Download C++ reference) but I do not know which version of library is installed in my Ubuntu.
3
votes
1answer
980 views

Embedding C++ Objects into QML with Context Properties

According to Qt5 documentation: exposing methods including qt slots all public slots of C++ classes that inherit from QObject, are accessible from QML Here what I did: C++ class MyClass : public ...
3
votes
1answer
3k views

Why does gsl-library not compile/link in 11.10, despite that it did under 11.04 with the same makefile and program?

I have a problem with the gsl library in Oneiric - after upgrade from Natty to Oneiric I cannot build a program anymore with my own makefile, despite the fact that in QT Creator everything works fine ...
3
votes
2answers
988 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 ...
3
votes
1answer
241 views

C++ programming - Is there a way to make gedit recognize new classes?

I'm C++ programming in ubuntu 12.04 using gedit and it recognizes c++ default commands. I was wondering if I can make it able to recognize the new classes I define and change their color in the code ...
3
votes
2answers
166 views

What version of C++ does 12.04 use?

If anybody knows or has a way for me to check it would be much appreciated. Isn't there a certain version of C++ that you need to use with the gcc? Sorry, I don't know much about programming, but I ...
3
votes
2answers
7k views

How to install gtkmm?

Is the gtkmm package already installed by default? If not how do I install it on Ubuntu 11.10 with all the prerequisites? I do not see any reference to the packages described in the gtkmm tutorial in ...