C++ is a general-purpose programming language.

learn more… | top users | synonyms

0
votes
1answer
118 views

Unable to generate core dump after apport disable

Hi I'm currently programming c++ on Ubuntu and am unable to generate a core dump with a segmentation fault. I just get "Segementation fault" and not the (core dump) I have set ulimit -c unlimited. I ...
1
vote
1answer
692 views

Netbeans and codelite do not recognize #include <iostream> C++

I recently decided try learn a bit of programming, so I wrote my " hello world" and it did not work. This is my code #include <iostream> using namespace std; int main() { cout << "hello ...
1
vote
1answer
320 views

undefined reference to `dlopen' despite CMAKE_DL_LIBS

I'm trying to install the tools for gameplay3d. After following the cmake installation instructions, I get this error: Linking CXX executable gameplay-encoder /usr/lib/gcc4/x64/release/libfbxsdk.so: ...
1
vote
0answers
66 views

How do I set the F77 environment variable to gfortran?

I'm new Ubuntu (and linux) user. In order to do my senior project, I have to install psrchive I use this command to install psrchive ./psrsoft/bin/psrsoft psrchive --no-cfitsio This is part of ...
0
votes
0answers
271 views

How to take screenshot in jpeg format using ubuntu tools only

i need to develope a cpp software to capture screenshot ( in jpeg format ) and send images's bytes through a socket. I created correctly the server socket but i don't know how to take a screenshot ...
0
votes
1answer
55 views

How to add paths in ubuntu

I know that this is a very popular question with a lot of threads already about it, but unfortunately after trying some of the suggestions I didn't manage to solve my problem, so I am posting a new ...
0
votes
1answer
113 views

what is the best editor for C++. I want to use C++ for my Masters project [duplicate]

what is the best editor for C++. I want to use C++ for my Masters project. Please suggest the best editor for C++
0
votes
0answers
123 views

undefined reference to gl/glut functions

I'm trying to compile a c++/opengl program I created on another machine running Debian on this machine running ubuntu. I'm pretty sure I've installed all the required libraries that I need. When I ...
0
votes
1answer
142 views

Cannot find -lxi

I am trying to compile and run an OpenGL/GLUT program i created on another pc on my virtual machine ubuntu at home. I've installed freeglut3 and the other OpenGL libraries, but when I try to compile I ...
0
votes
1answer
6k views

Fatal error: gl/glut.h: no such file or directory [closed]

I've been learning C++ and I'm attempting to write a program. I keep getting this error. I've read through other similar problems that people were having, and nothing has worked for me.
0
votes
0answers
18 views

Ubuntu Gtkmm 3 window resize

I have a window and this is it's size: window->set_default_size(600, 400); The problem is when i set this: window->set_resizable(false); The window will shrink. Look in picture: below ...
3
votes
1answer
992 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
106 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
490 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)
0
votes
0answers
82 views

Where is the gls include path and lib in Ubuntu 12.04?

I am new to installing libraries in c++, I need to compile a code that uses gsl library, I used synaptic to install this library, but I don't understand where the files are. In the makefile of the ...
1
vote
1answer
112 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
1answer
566 views

CodeBlock c++ problem: Procces returned 126 (0x7E)

I'm having a problem with CodeBlocks. I can't run any C++ code and every time i try, I get the following error in terminal Process returned 126 (0x7E)` I googled it and found this link: ...
1
vote
0answers
40 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
272 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
0answers
56 views

Upgrade boost 1.49.0.1 to 1.54 on Ubuntu 12.10

Had stability issues with 13.10 and problems with secure boot on 12.04 so currently using Ubuntu 12.10. I have used the regular boost installation command from the terminal but because I am on 12.10 ...
0
votes
1answer
523 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 ...
2
votes
1answer
274 views

How to detect events like lock/unlock screen, enter/return suspend and monitor power off

I am wondering if there is any way to detect system wide events under linux such as: user un/locked session user logs in/out machine sent to suspend screensaver goes on and the monitor switches off ...
1
vote
1answer
198 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
250 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
879 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 ...
0
votes
0answers
41 views

Why are gtk message dialogs in Xubuntu gray only? They have colorful icons elsewhere

I use Xubuntu 13.1 to develop some applications with gtk in c++ using libgtk-3-dev. I use message dialog boxes for error messages, like this dialog = gtk_message_dialog_new(GTK_WINDOW(mainWindow), ...
2
votes
1answer
169 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
0answers
46 views

running turboc++ in dosemu

my question is how to run borland turbo c++ version 3 in dosemu. I know dosbox works, but I am not able to copy the output produced in the program. I tried installing turco ++ in dosemu by navigating ...
0
votes
1answer
137 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
243 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
180 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 ...
0
votes
1answer
376 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 ...
-1
votes
2answers
208 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 * ...
0
votes
2answers
142 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
217 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
43 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
401 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
90 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
164 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 ...
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. ...
2
votes
3answers
414 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
3k 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
20 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
195 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
220 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
57 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 ...