C++ is a general-purpose programming language.

learn more… | top users | synonyms

8
votes
3answers
15k 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 ...
0
votes
1answer
2k views

How do I build Allegro?

I'm trying to build allegro on 12.04 but it continues to give me error, I've downloaded the tar.gz folder of version 5.0.7 and installed cmake, what else do I need? And how do I proceed?
1
vote
2answers
1k views

Netbeans cant call libraries in C++ since update to 12.04

I was hoping you can help me solve a problem I have. Since I updated to 12.04 version of Ubuntu I cant call libraries in C++ netbeans projects. I get this message in netbeans when I include library ...
0
votes
2answers
624 views

Is this Ubuntu One DBus signal connection code correct?

This is my first time using DBus so I'm not entirely sure if I'm going about this the right way. I'm attempting to connect the the Ubuntu One DBus service and obtain login credentials for my app, ...
2
votes
1answer
1k views

A question about “add-apt-repository”(gcc 4.7 or bumblebee)

I installed Ubuntu 12.04 in my notebook and I use C++. I want to use C++11, so I want to upgrade my gcc to gcc-4.7. I ran these commands: sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo ...
0
votes
1answer
375 views

C++ Application on Kubuntu

Im looking to develop myself an application for my KUbuntu machine. Basically a tool kit for stuff I use all the time. I have looked at the QT framework but cant find any really good guides for it ...
2
votes
1answer
338 views

How to use quickly with c++

I wanted to know that how can i create application using c++ with quickly. Recently i wanted to use pyside with it so i deleted all the files in the main folder expect init.py And it works I wanted to ...
0
votes
1answer
2k views

eclipse-CDT won't debug my c++ programs

I've installed eclipse from ubuntu repositories and I installed CDT from "install new software." But every time I try to debug a simple program, an error occurs that says 'launching q.cpp debug' ...
0
votes
1answer
593 views

Anyone know if 12.04 has OpenGL Aux Libraries?

Im wanting to know how to install ubuntu 12.04's OpenGL aux libraries if any. Im trying to program OpenGL with C++. I cant find anything on google so. any help would be super great!!!
5
votes
1answer
374 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 ...
10
votes
1answer
15k 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" ...
0
votes
1answer
465 views

Cmake module and OpenGL on 12.04

I'm trying to find some opengl dev files and I had it working great in 11.10. I can just barely move around cmake and kind of wrap my head around linux development. If anyone can provide a better ...
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 ...
0
votes
1answer
5k views

gcc compiling error for c++ program

When I'm trying to compile a C++ program with gcc, it gives me following error: gcc: error trying to exec 'cc1plus': execvp: No such file or directory error: command 'gcc' failed with exit status 1
1
vote
3answers
9k views

Eclipse not creating a binary file when building a simple program

I have a problem with linking and\or running a simple program in my eclipse. I'll try to first give a full description of the setup I'm using, to help identify the problem. Please notice that this is ...
1
vote
2answers
6k views

“32-bit libraries not found on this system” when trying to install the Intel C++ Composer

I am installing Intel C++ Composer (Non-commercial version) for Linux with x32 and x64 target. During installation i get the warning message: Step no: 4 of 6 | Options > Missing Optional ...
0
votes
2answers
4k views

How can I disassemble or decompile a C++ executable?

Is there any tool like Dumpbin (for Windows) in Ubuntu which can disasssemble (produce machine code) for an executable file?
1
vote
2answers
2k views

boost 1.48 and default (1.46) on Precise Pangolin12.04

The Precise release of ubuntu has two libboost-dev packages. The default is 1.46, but there is also a 1.48. If I install both, where are the headers and libraries for 1.48 installed? Are the ...
14
votes
2answers
99k 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 ...
1
vote
2answers
234 views

Unendable question C or C++ [closed]

Got a question related to programming. I was planning to choose one more language, besides Java, and stuck between choosing C or C++. I am planning to create apps specifically for Ubuntu with GUI ...
-2
votes
1answer
21k views

Compiling C++ code raising “no input files” fatal error?

I am finding it hard to run/compile a simple C++ code in the terminal. Here's the code I am using to compile the file (helloworld.cpp). g++ helloworld.cpp -o helloworld I am getting an error. ...
-1
votes
1answer
2k views

How to use Kdevelop to write c++ programs ?

How I can build c++ applications using Kdevelop. Where I can find tutorials for kDevelop4 ? How to set the path for it ? How I can build a GUI application using Kdevelop 4.2? Whenever I try to ...
1
vote
5answers
11k 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 ...
0
votes
1answer
783 views

libboost installation per apt-get - where are the files located? how do I link them in eclipse?

Im trying to install the boost libraries and entered sudo apt-get libboost* i managed to set the include paths and the header-only librarys are working. when I try other libraries like regex I get an ...
0
votes
1answer
3k views

Problem using graphics.h in Ubuntu

# include<stdio.h> # include<graphics.h> # include<math.h> using namespace std; int main(void) { int gd=DETECT,gm; int r,x,y,p,xc=320,yc=240; ...
1
vote
1answer
197 views

Unity, C++, opening a Unity folder out of a QT-application

I wrote an QT-application, which shows a "QTreeWidget" of a certain directory and its sub-directories. Now I would like to make unity open a folder e.g. /home/Username/, by clicking one of the ...
2
votes
1answer
189 views

Recommended way of packaging a boost::python module?

I have a one-file boost::python module which is compiled using a one-line Makefile. What is the recommended way of packaging it? Distutils? Makefile? CMake? Use CDBS then? Are there some documents on ...
1
vote
1answer
2k views

configuration of Eclipse (C++ version) for running SQLite?

I need to run C++ code via eclipse which has SQlite. I can run it via terminal with typing g++ test.cpp -lsqlite3 . but how can I run it via Eclipse? how should pur the command "-lsqlite3" in its ...
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 ...
0
votes
1answer
383 views

Assigning permission to C++ program

I'm trying to run a program in C++ compiladom in Ubuntu, but is giving permission denied. I tried chmod 755 file but does not work. How do I solve this?
2
votes
5answers
1k views

How can I run Turbo C++?

How can I use Windows apps like Turbo C++ on Ubuntu? Wine says "not applicable on your PC", or something like that. I need to specifically use Turbo C++ on Ubuntu for my coursework.
1
vote
2answers
596 views

Installing/upgrading GCC compilier for testing C++

I have ubuntu 10.10, and I have been learning c++ lately on it. I originally installed the gcc compilier via the command: sudo aptitude install build-essential I would like to start ...
4
votes
1answer
15k 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 ...
1
vote
1answer
211 views

Stopping the Unity global menu from hijacking the menubar from my app

I'm developing an application for Ubuntu that (ab)uses the Gtk::MenuBar class to create a custom widget. It works fine on Gnome-Shell, but on Unity the widget gets hidden. I know I can disable the ...
3
votes
1answer
4k 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
10k 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 ...
9
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 ...
9
votes
3answers
2k 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 ...
0
votes
1answer
565 views

Trying to install Eclipse or Codeblock

I am new to using Ubuntu, and so in need of some help getting my development box up and running. I am trying to develop C++ code, but when I try to install CodeBlock IDE or Eclipse indigo, I run into ...
26
votes
4answers
250k 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.
7
votes
3answers
6k 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.
7
votes
1answer
11k 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. ...
3
votes
3answers
7k views

How to compile c & c++ programs?

I read somewhere that I need to install 'build essential packager' & so I tried: sudo apt-get install build-essential Reading package lists... Done Building dependency tree Reading state ...
1
vote
1answer
225 views

Can't get menus to show up in custom indicator

I am trying to get a menu to show in a custom application written in C. I create the GtkMenu, populate it with GtkMenuItem(s) and add it to the indicator, which shows up in the indicator list, but the ...
5
votes
1answer
432 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 ...
8
votes
5answers
56k 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 ...
3
votes
2answers
14k views

Where can I download the Intel C++ Compiler?

I read somewhere that Intel C++ is free for non-professional use. But the intel site www.software.intel.com has no option for free download. It provides the 30 days trial version and need to buy ...
0
votes
2answers
4k views

Problems with Photoshop CS5 on Wine 1.3: C++ Library Runtime Error

When I try running Photoshop CS3 after installing it following this tutorial, I got Also I noticed that http://pastie.org/1877592 jiewmeng@JM:/works/tmp/adobe$ winetricks msxml6 gdiplus ...
2
votes
2answers
4k views

best ide to write c++ programs [duplicate]

Possible Duplicate: C programing suites/IDEs hi, i'm going to write c++ program with a frameworks that uses opengl, opencv, etc. i've tried Eclipse but even it is a great tool for java and ...
2
votes
1answer
942 views

Problem recompiling using make command

I'm trying to modify some C++ files in ns2 and then recompile using make command. Although new .o file is created after make, the output is similar to that of previous C++ file (before modifying). Can ...