C++ is a general-purpose programming language.

learn more… | top users | synonyms

2
votes
0answers
42 views

Publish a QML/C++ application as a click package

I've written an application which I would like to publish as click package. All the guides and prepared projects mention plain QML applications only. My application furthermore depends on a shared ...
0
votes
1answer
351 views

Install opencv eclipse

I am using ubuntu 13.10 and I am trying to install opencv on eclipse. I am following this tutorial LINK I do not know where is my library. This what I obtain when I try to find the files. ...
0
votes
0answers
172 views

“Code 126: Permission Denied” when using GDB Debugger

I have written a piece of C++ code and am trying to debug that using GDB Debugger. The code uses bunch of libraries, so I am using a make-file to compile and link all the required libraries, which I ...
2
votes
1answer
109 views

Why wouldn't sound be heard on the phone when it works on the desktop with an Ubuntu Touch app?

I have an Ubuntu Touch application in the works. The application needs to playback sound. I've used QtMultimedia from C++ for sound playback. The sound plays fine on PC but not on the phone. The odd ...
6
votes
1answer
140 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 ...
0
votes
0answers
51 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
230 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
134 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
41 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
157 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
45 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
81 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
55 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
52 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
3k 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
14 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
347 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
77 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
159 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
50 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
54 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
238 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
39 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
192 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
48 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
241 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
192 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
126 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
141 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
695 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
37 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
126 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
35 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
115 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
191 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
174 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
198 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
85 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
89 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
165 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
37 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
181 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
676 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
69 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
98 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 ...
4
votes
1answer
1k 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. ...
1
vote
2answers
192 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
2k 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
18 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
138 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 ...