C++ is a general-purpose programming language.

learn more… | top users | synonyms

0
votes
0answers
8 views

Get Terminal Output in Qt Creator vector of strings

I just started with Qt creator and after a long search in google I couldn't found the answer I wanted, so I thaught asking here would give me a solution. I work in Ubuntu distro. Is it possible to ...
1
vote
1answer
31 views

Is it bad practice to use gksu when writing code in development?

I am writing a C++ application that needs to access the serial port and use the mount command, both needing root to be performed. In the end the application will be run as root on a device, but I am ...
0
votes
2answers
25 views

What am I missing, so I can compile my source? I'm new at this [on hold]

#include <stdio.h> #include <stdlib.h> #include <string.h> #define password "Please enter your password" int main(int arge, char *argv[]) ( char pass[100]; printf("Please ...
0
votes
1answer
20 views

permission denied for mysql when compiling in CDT eclipse [on hold]

I have a remote machine which I connected it by echoVNC and I access by vnc user & password. I installed eclipse CDT and I also installed mysql under the vnc user. I wrote a small program which ...
0
votes
0answers
18 views

c++ LAPACK library not detected whereas it's installed

I have installed the lapack library using the following commands: sudo apt-get install liblapack-dev In synaptic I have checked if everything was installed and it sounds good. I would like to ...
1
vote
1answer
27 views

SNAP Installation C++

I am new to Linux and working in its environment. I have trouble understanding and installing SNAP library for C++ on Ubuntu 14.04. I am following this tutorial. Inside the SNAP directory I run the ...
0
votes
0answers
10 views

Using migw32 to compile for windows

I have been writing a program that requires C++ 11, so I had been using the -std=c++11 to compile with g++. That worked, until I wanted to use mingw32, I ran into the same problems (such as stod and ...
1
vote
2answers
48 views

How to shutdown computer with ubuntu from a program?

How can I add a 'shutdown option' to my program? Or how can I send commands to terminal from my program (so I can send a sudo shutdown command) ? Planning to write in c++.
1
vote
0answers
11 views

Parallels Tools breaks SFML

So I created a clean VM of Xubuntu 14.04.2 in Parallels 10.2.1 and I got SFML working properly with sudo apt-get install libsfml-dev. Then I rebooted and made sure it still worked, and after that the ...
1
vote
1answer
35 views

Build Essentials

Good morning everyone, the long and short of it is I'm setting up an interdomain IRC server for my company. To do so I needed a c++ compiler so I was directed to build essentials. However whenever I ...
0
votes
0answers
22 views

Monodevelop “GDB: Failed to set controlling terminal: Operation not permitted\n” warning

In Monodevelop when trying to compile and run a C++ program I get this warning: &"warning: GDB: Failed to set controlling terminal: Operation not permitted\n" printed just before the output of ...
0
votes
4answers
72 views

Where to find Magick++ API?

I'm on Ubuntu 14.04, which has ImageMagick 6.7.7-10 installed by default. I need to use Magick++, a C++ API for ImageMagick, in a C++ project, but I have no idea where it's located. How can I tell if ...
0
votes
0answers
42 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
46 views

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

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
23 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
70 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
32 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
117 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 ...
1
vote
1answer
81 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)': ...
1
vote
0answers
80 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 ...
0
votes
0answers
195 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. ...
2
votes
1answer
79 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 ...
1
vote
0answers
42 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 ...
-1
votes
1answer
24 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
58 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 ...
0
votes
1answer
30 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 ...
1
vote
1answer
90 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
0answers
40 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
1answer
89 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: ...
1
vote
0answers
37 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 ...
0
votes
0answers
25 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
1answer
51 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
65 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
34 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 ...
0
votes
0answers
48 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
19 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 ...
8
votes
2answers
277 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
61 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
76 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 ...
4
votes
2answers
1k 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 ...
1
vote
1answer
90 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 ...
3
votes
1answer
777 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
1answer
52 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 ...
1
vote
1answer
159 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
83 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
47 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
81 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
1answer
108 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 ...
0
votes
0answers
224 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 ...