C++ is a general-purpose programming language.

learn more… | top users | synonyms

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
13 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
20 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
77 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
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)': ...
1
vote
0answers
34 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
79 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
51 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
23 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
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 ...
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 ...
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
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
1answer
60 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
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 ...
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
1answer
42 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
40 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 ...
0
votes
0answers
35 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 ...
8
votes
2answers
227 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
46 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
59 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
700 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
54 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
500 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
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 ...
1
vote
1answer
105 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
1answer
74 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
174 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 ...
0
votes
0answers
94 views

Connecting to Arduino via USB from C++

I am trying to send information to an Arduino from a C++ file, however I am receiving segmentation errors when I run the program. It compiles fine but when it is run the first line of the code doesn't ...
1
vote
0answers
39 views

Ncurses problem

I try to make my first program which use ncurses. The problem is that screen got clean when it meet first time ch = getch(); # include "sys/ioctl.h" # include "ncurses.h" # include "unistd.h" ...
2
votes
2answers
206 views

QML app with C++ plugin (cmake) adding resource file

How to add qrc file to "QML app with C++ plugin (cmake)" project ? I can't find a working instruction. I found only one thing, add this to CMakeLists.txt: qt5_add_resources(RESOURCES ...
2
votes
1answer
49 views

Running C++ executable file using nautilus

Although this may be a programming issue, I figured it would be more appropriate here. My issue is that when I compile my program (using Code::Blocks if it's important), I get a nice (SFML) window and ...
1
vote
1answer
105 views

QML app with C++ plugin (cmake) subdirectory

I am developing an Ubuntu Phone application "QML app with C++ plugin (cmake)" but I have so many qml files so I want to separate them by functionality ApplicationName CMakeListes.txt .. app ...
1
vote
1answer
121 views

How to run C program on 14.04?

I'm trying to run some C programs using Geany and Code::Blocks. After coding them, when I run them, a message is showed in the terminal like this: In Code::Blocks: sh: 1: /home/c program files/2: ...
2
votes
2answers
111 views

Cannot run QML App with C++ plugin

I'm trying to extend a QML App with C++ functionality. Basically I want to make the MythMote app which is available on Android available on Ubuntu Touch. Also see my other question for which I would ...
0
votes
1answer
60 views

how to build simple program run from terminal in ubuntu [duplicate]

I'm writing simple program in c++ using netbeans. I want it should be executable thru ubuntu terminal as other do like "php samel.php" it works I want something like this please guide me how to do ...
3
votes
3answers
253 views

Can I call a .cpp program in Bash?

I am new in Bash programming. I want to call my C++ program in Bash file. My program is myProg.cpp: #include<iostream> using namespace std; int main() { cout<<"Salam! ...
0
votes
1answer
37 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.
-2
votes
1answer
167 views

How to configure netbeans 8.0.2 for C++ in ubuntu 14.04?

I am new to programming, netbeans and ubuntu. I have installed the netbeans ide with the c/c++ bundle from https://netbeans.org/downloads/ . I have no idea what else to install. Please help me in ...
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..
0
votes
0answers
60 views

Creating new frame in wxwidgets using codeblocks

Good day to all, I am a beginner in coding wxwidgets using codeblocks in Ubuntu. I have a main frame which contains a button which would create a new frame.My main frame is called TemplateFrame and ...