C++ is a general-purpose programming language.

learn more… | top users | synonyms

0
votes
0answers
23 views

Missing usr/include/c++/4.7/i868-linux-gnu

I am using ubuntu 12.04 with c++ 4.6. I installed c++ 4.7 but it missing folder i868-linux-gnu. Anyone know why? and how to get it?
0
votes
0answers
16 views

error: expected unqualified-id before ‘;’ token when build c++ project?

I get an error when building a c++ project that works under Visual Studio but fails in Eclipse Some sample code to be able to simulate: #include <utility> #include ...
0
votes
1answer
18 views

Error: ‘is_same’ is not a member of ‘std’ when build c++ project in ubuntu?

I have a small project and i get an error ‘is_same’ is not a member of ‘std’ when building. this is some code: template <class T> T* UcmExportFactory::Unwrap (T* ptr) { Utils::IUcmWrapper* ...
0
votes
0answers
14 views

Prefix and Path for Cross GCC in Eclipse

I'm pretty new in ubuntu and have a problem with it. I wanna to write a c++ program in eclipse and compile it with cross gcc. At the first i Added "CDT" from "help-->install new software" Now when ...
0
votes
1answer
59 views

Error running .exe compiled with i586-mingw32msvc-g++ and SFML

So well, I'm fighting with WINE and MinGW32 right now. So I have a file, sortem.cpp which is compiled with a Makefile and linked and all from that Makefile. sortem.cpp #include <windows.h> ...
4
votes
2answers
727 views

How to install g++ 5.1 on Ubuntu desktop 15.04 64-bit?

I'd like to experiment with the new GCC 5.1 C++ compiler on Ubuntu. So, I downloaded and installed Linux Ubuntu desktop 15.04 64-bit in a virtual machine. Then, in the terminal, I entered the ...
14
votes
6answers
144k 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.
0
votes
1answer
21 views

Cannot execute QT console program in ubuntu [duplicate]

An error occurred. Starting /media/milo/DATA1/Milo/C++/build-test-Desktop-Debug/test... Cannot execute '/media/milo/DATA1/Milo/C++/build-test-Desktop-Debug/test': Permission denied ...
0
votes
2answers
79 views

shall i need to install g++ to compile c++ files in Ubuntu 14.04.1

I am using Ubuntu 14.04.1 I want to know, Do I need to install g++ from the Ubuntu Software Center to compile the c++ files? Is GCC(GNU Compiler Collection) able to accomplish this instead? if the ...
2
votes
3answers
3k views

Eigen installation seemed to work, but I still can't make eigen work

I am trying to install eigen, but I don't seem to get it to work. I did: sudo apt-get install libeigen3-dev and everything seems fine, after dpkg -p libeigen3-dev I get: Package: libeigen3-dev ...
2
votes
1answer
123 views

Ubuntu Touch App with Simple UI (QMake) - how to connect C++ to QML

I've noticed that the Ubuntu SDK now has a template for an 'App with Simple UI (QMake)'. This creates a C++ Ubuntu application project with a sample UI containing a Label and a Button (Needs a 15.04 ...
1
vote
1answer
58 views

Why am I getting this undefined reference error while trying to build a c++ project? [closed]

To fix another debug error, I added -std=c++11 to the build command. Now I'm getting a ton of "undefined reference errors like this one: In function encrypt(std::string&, int)': ...
0
votes
1answer
35 views

How to create a installer package of my software made in Code Blocks

I am an amateur developer, I'm using Ubuntu for like 1 month or so and I want to know how can I create an installer package form my Code Blocks C++ generated release file..
1
vote
0answers
37 views

gcc: fatal error: no input files

I just installed Ubuntu (14.04 LTS) for the first time and I went straight to programming. I installed MonoDevelop and tried to create my first C++ program on Ubuntu. However, when I tried to build ...
1
vote
0answers
196 views

Get keyboard input without requiring root and without x11

I'm trying to capture keyboard input in a C/C++ program without requiring root privileges and without the use of X11 XNextEvent(). I've tried to open the device directly, but for obvious security ...
1
vote
0answers
24 views

Have Qt Creator execute gdb command after all libraries are loaded

I would like to setup Qt Creator debugger to ignore all boost files when stepping through my code. Just to test, I added the command: "skip file ...
2
votes
1answer
52 views

How to compile my first C++ program (geany)?

I'm an experienced Windows developer (Delphi, C/C++, C#, etc). I've just downloaded uBuntu 14.04 64-bit and then looked for some IDEs and saw geany got good reviews. After downloading it, I'm stumped ...
0
votes
0answers
83 views

Trouble installing Boost 1.58

running 14.04 LTS. I've gone and actually deleted the Boost directory from my /usr/include directory. I'm still trying to figure out how exactly to install this and get it working with my application. ...
-1
votes
1answer
21 views

first in c++ program don't compile and execute [closed]

#include<iostream> using namespace std; int main() { cout << " hello world !! good job nothing & something" << "\n" ; cout << " i jitendra singh in ...
0
votes
1answer
40 views

Compile error, g++ and c++11 [closed]

Im trying to compile this code via g++, #include <iostream> #include <set> using namespace std; std::set<int> s; int main(){ for(int i=0;i<10;i++) s.insert(i); for(auto ...
1
vote
1answer
51 views

how to add graphics.h to code blocks in ubuntu ?

I have installed the codeblocks from ubuntu software center and used good enough time no problem but when i try to access functions from graphics.h library I'm getting errors so please help me adding ...
0
votes
1answer
25 views

Using in-house programs in C++ with a DLL library in Ubuntu

I have a number of in-house programs coded in C++ using microsoft visual studio and a microsoft .dll librairy. I'm serching for a way to use those programs in Ubuntu without having to change all the ...
0
votes
1answer
43 views

Is it possible to send keys to inactive window via any c/c++ library?

I'm developing a program where I need to control an inactive window by sending a couple of keys. I was wondering if there is any c/c++ library to do so on Ubuntu (and linux in general) ? I googled a ...
0
votes
0answers
27 views

Adding qt4 and qt5 to global path

I have downloaded a source code from github. It is using qt and in many files it has the following headers included: #include <QApplication> #include <QApplication> #include ...
1
vote
0answers
30 views

Could not able to compile with /opt/ELDK42/usr/bin/ppc-linux-g++

here is my test.cpp #include<iostream> using namespace std; int main() { cout<<"hello world"; return 0; } $ /opt/ELDK42/usr/bin/ppc-linux-g++ test.cpp ...
1
vote
1answer
61 views

Can't compile a simple C++ program using g++

When I try to compile any c++ program using g++ I get the following error, the stack trace is really long, this is just a sample: ........... /usr/include/x86_64-linux-gnu/bits/byteswap.h:47:2: ...
0
votes
0answers
23 views

ssh hangs when executed from Code

i am trying to log the RSSI value of wlan0 interface for a remote system. I run the following command to do that. sshpass -p <pwd> ssh <username>@<IP> iwconfig wlan0. I am executing ...
0
votes
0answers
70 views

file not found when trying to run code in codeblocks

When I go to run a program xterm comes up and it has sh: 1: [address of file]/bin/Debug/[file name]: not found. Before I ran the program it says "It seems that this project has not been built yet. ...
3
votes
2answers
10k 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
0answers
43 views

Undefined Reference during catkin_make

I'm having some problem with the catkin_make. The error is : /home/marcello/catkin_ws/src/aruco_marker_detector/lib/libaruco_marker_detector‌​.so: error: undefined reference to ...
2
votes
0answers
29 views

Two webcams of the same model are not working

I've been developing a dual webcam system for stereoscopic purposes, in a linux enviroment, using c++ with the opencv library The ideal setup would be with 2 webcams of the same model, but it didn't ...
8
votes
2answers
230 views

How to execute C++ program whenever a USB flash drive is inserted

I have a C++ program that accesses USB pen drives/flash drives. It works for currently inserted flash drive. A normal C++ program doesn't execute until we run it. But I wanted the program to run ...
0
votes
0answers
36 views

ZXing C++ on ubuntu

Would it be posisble to run C++ version of ZXing in ubuntu? We have a need for it but cant afford to install Java for security concerns. https://github.com/jverkoey/liteqr
0
votes
0answers
17 views

14.04 HP 15-R212NL allegro 5 audio crash

in my pc when i start an allegro program it crash with segmentation fault when i call the allegro function "al_reserve_function(1);". In other pc it doesn't happen then i have read the code of this ...
2
votes
1answer
529 views

clang++ fails to compile simple hello world c++ program

After upgrade to 14.04 from 12.04 clang++ stopped working. $ cat test.cpp #include <iostream> int main() { std::cout << "Hello World" << std::endl; return 0; } $ ...
3
votes
1answer
503 views

CXXABI_1.3.8 not found

So, I'm trying to run heroes of newerth and get the error ./hon-x86_64: /home/c0ding/HoN/libs-x86_64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by ...
0
votes
0answers
47 views

Uncomplete install of POCO C++ libraries

I recently started to use POCO C++ libraries to create a simple mail client and I needed to use SecureSMTPClientSession class, but compiler reports Poco/Net/SecureSMTPClientSession.h: No such file ...
0
votes
0answers
11 views

Problem configuring openvrml-0.18.9 [duplicate]

Downloaded latest version from http://openvrml.org/ Working with Ubuntu 14.04.2 LTS (x86_64) Tried to configure it without success: alex@pc:~/Downloads/openvrml-0.18.9$ ./configure ... checking for ...
1
vote
0answers
60 views

Problem with installing Qt5.3

I am trying to install Qt5.3 into my Ubuntu 14.04(64 bit). While installation process was running suddenly it was showing some prompts and showed several error messages as following: Error during ...
1
vote
1answer
55 views

Altough I installed GSL library, g++ cannot compile my code

In order to use gnu gsl library I've installed it with the following command : sudo apt-get install libgsl0ldbl When I write a simple c++ code just to check whether I installed it correctly or ...
0
votes
1answer
49 views

configure TimeZone

I have two computers with Ubuntu 12.04, both configured with location Santiago. However the time zones are different (blue bar under map) This generate problems when program in c++ and ask for the ...
7
votes
3answers
28k views

How to install latest cmake version in Linux/Ubuntu from command line?

I am trying to install latest cmake in my linux box and I am always getting the below exception - userName@phx5qa01c-4e23:~/build$ wget http://www.cmake.org/files/v2.8/cmake-2.8.11.tar.gz ...
1
vote
1answer
76 views

OpenCL on Ubuntu 14.04

I am running Ubuntu Gnome 14.04 with a nvidia GTX 760 and I want to start working with OpenCL and C++. I installed the CUDA Toolkit 7.0 for Ubuntu 64Bit version and the current nvidia driver, but the ...
1
vote
1answer
107 views

Issues finding the location of package: libsdl2-image-2.0-0

Recently I've been playing around with the SDL library and wanted to start using libsdl2-image-2.0-0 along with SDL. I have been trying to get this working with Ubuntu 15.04. I have installed the ...
1
vote
1answer
55 views

misunderstanding cmake's part in including library

I have been trying to include this pokerstove library so I could actually include these header files in my simple program so I could calculate some poker hand equities. So far its not going great ...
1
vote
1answer
36 views

Unable to use included library -> pokerstove in ubuntu 14.04

guys! I just included this pokerstove library with help of good instructions and with help of this website and its users I ran all commands in my home directory which is ...
1
vote
1answer
62 views

Getting C++ library to work on ubuntu 14.04

I'm trying to make this pokerstove library to work so it could be included and used in a simple .cpp file opened by simple text editor and compiled in terminal using g++ -o my_prog my_cpp.cpp ...
1
vote
3answers
1k views

Error while installing tiff-4.0.3

I get the following errors while installing tiff-4.0.3: pranav@pranav-Inspiron-1545:~$ cd dependency/ pranav@pranav-Inspiron-1545:~/dependency$ tar -xvf libtiff4-3.6.0-5.tar.bz2 usr/bin/cygtiff4.dll ...
0
votes
1answer
39 views

qtserialport in c++ app ubuntu

Can someone please tell me how to install the qtserialport to use in a c++ project in ubuntu? Thanks.
0
votes
0answers
176 views

Raspberry Pi C++11 std::thread: pure virtual method called

Ubuntu 14.04. I've installed gcc-arm-linux-gnueabihf, g++-arm-linux-gnueabihf (tried 4.8 and 4.9 from utopic). Code that uses std::thread: #include <iostream> #include <chrono> #include ...