C++ is a general-purpose programming language.

learn more… | top users | synonyms

13
votes
1answer
604 views

How to build a simple chat using netcat?

I am currently working on a project and I have implemented a simple chat application using the netcat libraries. The client is prompted to enter port number and the command nc -l -p xxxx where ...
0
votes
0answers
10 views

CGAL: make command gives many errors?

I have a project this semester as a part of which I have to run a code which uses CGAL lib on my system.The code was written by a senior on his system. I am using ubuntu 14.04 and 32 bit system (dual ...
0
votes
0answers
8 views

I want to install systemc2.2.1 on Ubuntu 14.0.4

Hi i am a newbie and want to install systemc2.2.1 on ubuntu. I have gcc 4.8 in my ubuntu but that does not support systemc2.2.1. Now kindly suggest me proper gcc for systemc2.2.1 and also suggest me ...
1
vote
1answer
16 views

Removing changes made to geany

Actually I am a newbie here and I installed geany IDE and made some changes to it like hiding the menu (using the full view ). Now I want to undo those changes but don't know how to do it. Can someone ...
0
votes
0answers
19 views

Compiling with java and C++ [duplicate]

I'm new to programming, i have experience in hmtl and php, also fortran, but not java and c++, i'm actually trying to learn android apps programming, so java and c++ are the basis. But how do i ...
1
vote
2answers
36 views

It's possible to develop ubuntu touch app in C++ without using QML?

I am looking for way to develop ubuntu touch app using only C/C++. I want to know what are other options, maybe GTK+ can be used ? or QT Widget ? without sacrificing display touch capabilities ? And ...
-1
votes
0answers
12 views

moveit setting_planner

i'm trying to use moveit to compute the Inverse Kinimatic of a robot.i followed the tutorial on moveit and everything works.I can see on rviz the robot,define e goal pose and the robot reach that ...
-1
votes
1answer
37 views

GCC compliler causing error of illegal refference for access noxim

I am trying to run access noxim (network simulation too) on my Ubunto 14 and concerning this source. https://github.com/habedi/SystemC-AccessNoxim I am using systemc2.3.1 for this purpose. Now i ...
0
votes
1answer
41 views

How can I get my terminals / shells to have custom designs in it?

How can I add fun stuff to my terminal so I have extra zazz for when I break every thing every day! :D I'm learning C / C++ and think root projects and custom terminals would be fun way to practice ...
0
votes
0answers
29 views

Is there any step by step instructions to make Eclipse Mars look and feel like Visual Studio for Ubuntu?

I have been using Visual Studio ever since Visual Studio 6.0 and I like the way the IDE is arranged. I love the dragging and dropping of controls onto the GUI and the event driven programming. ...
-3
votes
0answers
48 views

Gimme some Integrated Development Editor for C/C++ Programming in Ubuntu 14.04? [duplicate]

I have to write C and C++ code, so gimme the best IDE ? IDE Output file should also be as .txt, Windows Execution file,Ubuntu Execution File.
1
vote
3answers
57 views

Serial Port Debugging on Ubuntu

I have a written a C++ program on Ubuntu 14.04 LTS which communicates with a USB2Serial device /dev/ttyUSB0 . I want to know if the connection parameters are set correctly on this file handle, what ...
0
votes
1answer
78 views

Installing Eclipse IDEs for Java and C/C++

I'm running an Ubuntu 14.04 and want to install the Eclipse IDE for both Java and C/C++ programming. I installed the separate installation files from their official website. I followed this thread ...
2
votes
1answer
41 views

Change C++ version [duplicate]

I am trying to change the C++ compiler version. I have both, 4.6.x AND 4.4 versions, I want to set it to the 4.4 version, so I am doing: export "CXX=g++-4.4" But when I run the command: g++ -v I ...
1
vote
1answer
35 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
0answers
41 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
29 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
13 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
64 views

How to shutdown computer with ubuntu from a program? [closed]

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
20 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
49 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
53 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
115 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
47 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
1answer
32 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
162 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
46 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
157 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
103 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
186 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
271 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
2answers
157 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
59 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
33 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
81 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
42 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
196 views

how to add graphics.h to code blocks in ubuntu ? [duplicate]

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
51 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
133 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
47 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
29 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
55 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
88 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
43 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
64 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
20 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
362 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
93 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
95 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 ...