Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [c++]

C++ is a general-purpose programming language.

1
vote
2answers
38 views
9
votes
1answer
989 views

Disabling C++11 in GCC 7.3

It seems like in Ubuntu 18.04, the default shipped g++ (version 7.3.0) runs in C++11 compatible mode by default. I am getting some errors in my old codes which are not C++11 compatible. I installed g++...
0
votes
0answers
21 views

Visual studio code configuration [closed]

I installed visual studio code for coding in c and c++. How to configure it for debugging building and running code . Please help
0
votes
0answers
15 views

Create a DEB package with shared lib dependency and without requiring autoconf

I have a C++ project that I would to make available on launchpad. I have tried to follow every tutorial on the net on how to create a Debian package and they all assume that I have autoconf set up. ...
1
vote
1answer
32 views

#include <SFML/Network.hpp> not found

Can someone help me out with this error. Trying to program a network scanner cppns.cpp:2:10: fatal error: SFML/Network.hpp: No such file or directory #include <SFML/Network.hpp> ^~~~~...
2
votes
1answer
26 views

Using OpenCV in ubuntu [closed]

NOTE: It isn't my machine, so I cannot upgrade it to Ubuntu 18, and I think the problem is unrelated to the ubuntu's version... I'm trying to use OpenCV in a Ubuntu 15.04, I was able to use it in a ...
1
vote
1answer
29 views

Issue with gcc/g++ while cmake building (./bootstrap)

I decided to reinstall cmake but after removing it I am having an Issues with installing. After entering a ./bootstrap It prints I am using type of g++ which I dont know how I got it CMake 3.12.0, ...
1
vote
1answer
41 views

C++ code cannot create output file on Ubuntu 16.04 [closed]

Using Ubuntu 16.04 with kernel 4.16.7. I'm trying to benchmark an SSD using the code I found here: https://cristianadam.eu/20160410/c-plus-plus-i-slash-o-benchmark/ This test uses three different ...
0
votes
0answers
40 views

Unable to find STL headers in Ubuntu 18.04

I am running the following command, with the verbose output below it: $ clang++ -m32 -I ../include -o format.cc.o -c format.cc -v clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final) Target: i386-pc-...
1
vote
0answers
47 views

Installation of CliPP on Ubuntu 18.04

I am working on a C++ project and I want to include a JavaScript function (call JavaScript functions from C++) in my CLion project. I found the CliPP library that can do that, but the installation ...
-1
votes
1answer
116 views

'Bash ./main: No such file or directory' error while trying to execute a C++ program

The code snippet: #include <iostream> using namespace std; int main(){ unsigned int a, b, diff; cin>>a>>b; diff = a - b; if(diff % 10 == 9){ diff--; }...
0
votes
0answers
31 views

“SigPack - the C++ signal processing library” installation and run help

I am still new to Linux and I'm trying to install "SigPack-a signal processing library". Instructions on SourceForge(http://sigpack.sourceforge.net/build.html) are pretty vague but I managed to ...
0
votes
0answers
269 views

Visual Studio 2017 like IDE for Ubuntu/Linux? [duplicate]

I program A LOT and I want to switch to Ubuntu 18.04, the only thing stopping is that I don't have a good IDE. Currently I have a dualboot with Ubuntu 18.04 and Windows 10, on Ubuntu, I currently run ...
0
votes
2answers
74 views

Graphical User Interface [closed]

I am doing development in C++. I heard that GTK is being replaced by Wayland. Which GUI libraries are suitable for C++ for long-term?
-1
votes
1answer
1k views

How do I use the latest GCC on Ubuntu? (Ubuntu 18.04; gcc 8.1) [duplicate]

Ubuntu currently provides gcc version 7.3, however gcc version 8.1 is currently available. I'd like to install gcc 8.1 alongside gcc 7.3 (so that if I call c++ it invokes the version from gcc 7.3, and ...
0
votes
0answers
36 views

Is there axcontainer module for Ubuntu?

I have implemented a c++/qt project in windows. I used QAxContainer so I can read and write Excel files. This is how I configured my .pro file: QT += core gui axcontainer greaterThan(...
0
votes
1answer
26 views

starting my c++ console program with startup applications

On ubuntu 16.04, I've made small GUI with c++ and ncurses. Result an .o file. How do I run that on login with startup applications, and what is required for this to work? I've tried this: [Desktop ...
0
votes
0answers
86 views

make fails boost ; openssl

I'm trying to build project with Casablanca cpprestsdk. Step 4 - make fails with a very long log error, although it is clear to see it is caused by openssl or boost. /usr/include/boost/asio/ssl/...
1
vote
2answers
434 views

How can i compile c++ files through visual studio code

quick rundown: im completely new to Ubuntu, but not new to c++. I've coded on a windows machine before, but the constant crashing and slugish debugging forced me to switch up and install Ubuntu, I've ...
0
votes
0answers
57 views

How to use ioctl to read keyboard input

I'm currently trying to use a display based on Arm. This display have buttons and I'm trying to catch event when I press those buttons. I have a device file located at dev/input/keyboard0. Here is ...
0
votes
0answers
30 views

Ubuntu User Switch Dbus notification

When a user switches from one user to another without logging out(fast user switch), is there a way to get the notification and to which user the account has logged in currently. This notification ...
0
votes
0answers
100 views

Accessing an IP camera in Ubuntu through Code::Blocks IDE

I am working on a task in which I have to access live stream of an IP Camera (Edimax IC-3110P) using OpenCV 3. My Host system is Windows 10 and I have used Virtualbox to run Ubuntu 16.04 (Xenial) 64-...
0
votes
0answers
15 views

Show video with Gstremer1.0 GTK+3.0

I can not correctly insert a video in GtkWidget. Tell me what I'm doing wrong? The video opens in a new window, and not in the one that I'm sending. The video should open in that window on the ...
1
vote
1answer
43 views

Can not open cpp excutable after compilation [duplicate]

I am having problem executing a cpp file after compilation. Here is the text output and how I compile it and try to run. coovi@coovi-Surface-Book:~/HW9$ g++ -Wall main.cpp -g -o main coovi@coovi-...
0
votes
1answer
74 views

Unable to install g++ compiler in Ubuntu 16.04

First I updated like this sudo apt-get update last it shows like below: Fetched 323 kB in 1s (247 kB/s) Reading package lists... Done Then I install g++ compiler....
0
votes
0answers
39 views

How to link libgattlib.so in a VS2017 VC++ for Linux project

I tried to build a VC++ for Linux (Raspbian) project in VS2017 (from my PC)using libgattlib.so static library residing in Raspberry Pi 3 board. The compilation went without errors. I can reliably ...
0
votes
0answers
23 views

error while using make command in sdsoc platform

I tried to compile my code using make statement and I am getting these following errors: Makefile:27: recipe for target 'haar.o' failed make: *** [haar.o] Error 1 I will attach the screenshot I had ...
0
votes
0answers
378 views

Boost 1.58 installed, but boost_thread and boost_locale missing

Trying to build a project that requires boost. I get the following error: Unable to find the requested Boost libraries. Boost version: 1.58.0 Boost include path: /usr/include Could not find ...
-1
votes
3answers
264 views

Why do I get syntax error when I try to run my C++ program after compiling it?

I am trying to learn C++, but I can't even make the first (hello world) example from cplusplus.org work with g++ command or c++. I created a file just like the example and ran g++ myfile, then ./...
1
vote
1answer
119 views

Is it possible to run/execute a bash script command from inside a python code?

I am not an expert, so I am asking my question here. I have C++ code which is using openCV modules. I need this program to send an image (img1.png) from a python code to be processed by this C++ code. ...
1
vote
0answers
277 views

Problem with boost 'undefined reference to'

I'm trying to set up this program (vocus2) I have install both boost and opencv after cmake . i get a confirmation -- Boost version: 1.46.1 -- Found the following Boost libraries: -- ...
0
votes
1answer
142 views

GUI Debugging server app using Visual Studio Code

I've been tasked with getting a GUI Debugger working for project being developed for Ubuntu 16.04 server in C++ 11.0 with BOOST. I've got the app building and running on 'headless' Ubuntu 16.04 ...
3
votes
0answers
201 views

False “application not responding” box is creating havoc with GDB

I'm trying to debug a C++ application using GDB and the Qt Creator IDE. Every time the debugger stops on a breakpoint, Ubuntu (v 17.10) thinks the application is frozen and issues the dialog box with ...
0
votes
0answers
81 views

C++ file structure in Ubuntu [duplicate]

I am a new Ubuntu user. How are C++ files stored in ubuntu? Like, where is iostream file and where are my new built libraries located? I don't know much about the file structure of Ubuntu, so if you ...
0
votes
0answers
362 views

c++ graphics not working “undefined reference to…”

#include<stdio.h> #include<stdlib.h> #include<graphics.h> int main() { int gd = DETECT, gm; initgraph(&gd, &gm, NULL); circle(50, 50, 30); delay(500000); ...
0
votes
0answers
55 views

Get user switch notification in Ubuntu and Kubuntu

I'm writing a daemon in C++ that needs to know when a User Switch event occurs on the desktop(not in a particular terminal). I would like to know if there is an API I can call or a file I can monitor ...
-1
votes
1answer
36 views

Simple C++ Thread Program Can't Be Compiled

The following is my 1st multi-threaded program. But while it was compiled, there is a linking error. The part of the error message: std::thread::thread<void (&)(int), int&>(void (&...
0
votes
0answers
77 views

Trying to Run fltk but would get undefined error

I am trying to compile a old programming assignment and when using my schools server it compiles without error and still works now. I am trying to compile on my home computer but would give me this ...
0
votes
0answers
34 views

Binary, compiled with newer gcc compatibility

I need to compile simple c++ program that will be used in old 32 bit Linux machine. I was expecting that I can take this old machine and build everything there, but found that default GDB is too old ...
0
votes
0answers
160 views

Needed: working source code of c_cpp_properties.json in VS code for ubuntu 16.04

Can someone post their working source code with all the includePath working properly? By mistake, I copy pasted the proper one for Windows XD. Goes something like: { "configurations": [ ...
0
votes
1answer
337 views

Interrupt the bash script with SIGINT [duplicate]

Hello I have a bash script that is one liner for executing a piece of long running C++ code. Running ps -xaf the script is running and C++ code is its child script.sh \_ long_main.cpp When i run the ...
4
votes
1answer
290 views

Can I act on the event that a window opens without polling?

I am trying to find a way to detect the event of a window (any window) being opened in Ubuntu 16.04 I would like to be able to detect the "window open" event and check if the opened window was my ...
1
vote
1answer
222 views

ROOT-installing with cmake succeds but is not usable

I currently am working with Ubuntu 16.04.3 LTS. You should know that I am completly knew to any Linux environments, so please excuse my lack of details if there's any. I have to work with the library ...
0
votes
0answers
268 views

Two errors: unexpected EOF while looking for matching `'' and syntax error: unexpected end of file

#include <iostream> using namespace std; int main() { cout << "Hello World" << endl; return 0; } My current Ubuntu version is 17.10 I saved the above C++ program on my ...
1
vote
1answer
86 views

Why am I missing Hermite polynomial GSL functions [libgsl-dev]?

I installed GSL on ubntu 16.04 using: sudo apt-get install libgsl2 libgsl-dev gsl-bin The installed version is 2.1+dfsg-2 . This works on some things but failed to calculate hermite polynomials. ...
0
votes
1answer
26 views

How to provide libstdc library?

I have created c++ application in Ubuntu linux and now trying to run it on Centos linux. Got error: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found How usually is performed in this ...
1
vote
1answer
96 views

how to have a working compiler in an empty ubuntu without root privileges

I am trying my best to have a working compiler on a fresh ubuntu installation, without having access to root privileges on the machine (my user is also not on the sudoers list). To me, this is totally ...
0
votes
1answer
848 views

Code::Blocks 17.12 not compiling

I am having a problem. I am running Ubuntu 17.10 and Code::Blocks 17.12. When I try to compile a simple "Hello World" program it gives me this error: -------------- Build: Debug in test5 (compiler: ...
0
votes
1answer
81 views

lib not found (ncurses)

I'm trying to compile this c++ project: https://github.com/YvesZHI/FallingCode I've successfully compiled it on my Mac OS, however, when I try to compile it on my ubuntu16.04, I get errors as below: ...
0
votes
1answer
49 views

Eclipse Neon3 fails while Oxygen runs fine

Trying to run Eclipse Neon3 on my Ubuntu 16.04 with latest Java. Got error describe below. Newer Eclipse Oxygen runs fine. How to fix error? !SESSION 2018-01-02 06:08:39.433 --------------------------...