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

Questions tagged [c++]

C++ is a general-purpose programming language.

0
votes
0answers
15 views

How to link trimesh2 library while compiling a c++ program? [on hold]

I have been trying to use functions from the trimesh2 library in my program. I ran the make file of the trimesh2 library, it works fine. But when I compile my c++ program, it says undefined reference....
0
votes
1answer
18 views

Command Line arguments in c++ [duplicate]

I wrote a c++ program. When the execution of that program, I should pass a string to that program. I executed my program as like below, ./sample "ball!28sweetDecay" When I run this program, I got ...
0
votes
0answers
32 views

I can't `make` OpenCV 3.1 (Ubuntu 18.04)

I'm trying to make OpenCV 3.1 after I generate the build with cmake-gui. I get this error [ 16%] Generating precomp.hpp.gch/opencv_core_Release.gch In file included from /usr/include/c++/7/bits/...
0
votes
0answers
24 views

Install g++-9 for c++20

I would like to run the full features of c++20 on g++. However, I need to install g++-9 for this purpose. Following the installation guides for old versions of g++ do not work for g++-9. Any hint? ...
0
votes
1answer
65 views

netbeans missing native build tools

My Goal I want to have a fully functioning NetBeans C/C++ on my ubuntu 18.04 A small background The first problem I've encountered was build host not connected after a little research I've ...
0
votes
1answer
72 views

OpenGL 3.2 on 18.04 VirtualBox guest: Is it possible?

I'm in a Computer Science course that has assignments to be done in C/C++ using OpenGL 3.2 and GLSL 1.5.0. There was a pre-made assignment which compiled and ran fine on the CS department's Ubuntu ...
0
votes
1answer
54 views

Compiling a C++ program with Chilkat library

This is the error I get when compiling my program with the Chilkat library. I understand that I need to include the "-l" but when I include that, it gives me this: /usr/bin/ld: cannot find -lchilkat-...
2
votes
1answer
87 views

How can I determine and change the version of the C++ standard library that g++ is using?

I have a C++ program that I'm trying to update to use the std::filesystem library which is in the standard library of the new C++-17. I had to install g++ version 8 to get C++-17 features. My ...
0
votes
0answers
27 views

How to run a personal C++ code without ./ statement [duplicate]

I'm starting to learn to program with C++. I have a very simple code and I compiled it with g++. The "program" runs so fine! But... I have to use the "./" parameter before the name of my program. ...
1
vote
0answers
12 views

/extractor/backoff_sampler.cc:24:18: error: ‘round’ was not declared in this scope

I am trying to build cdec on Ubuntu 18.04.1 LTS (running in VirtualBox on Windows 10). Please note that I am not at all an experienced Linux power-user. I executed the commands given in the ...
1
vote
2answers
90 views

Dev C++ Output Screen not coming

I installed Dev C++ using Wine on Ubuntu 18.04 and the program is compiling but it not showing any output screen.
0
votes
0answers
14 views

How to uninstall multiple version of same C++ Library

I installed C++ GTSAM library manually. Later I see in my /usr/local/lib I have following .so files libgtsam.so libgtsam.so.3 libgtsam.so.3.2.1 libgtsam.so.4 libgtsam.so.4.0.0 libgtsam_unstable....
0
votes
1answer
82 views

Unsupported GNU version! gcc versions later than 6 are not supported! - causes importing cpp_extension

Then I import it says before error this: /home/dex/anaconda3/lib/python3.6/site-packages/torch/utils/cpp_extension.py:118: UserWarning: !! WARNING !! !!!!!!!!!!!!!!!!...
1
vote
0answers
10 views

Beaglebone Black: GPIO pin export and unexport

I am diving into Linux on BBB, following this page. Can someone explain to me what export and unexport do, and why they are needed? Can't you just write straight into the virtual file system with ...
0
votes
0answers
14 views

Using Visual Studio Code for C++ doesn't work [duplicate]

Pressing Ctrl+F5 doesn't output anything. Can you help me please ?
0
votes
0answers
109 views

How to build the Boost Python for both Python2 and Python3?

I was trying to build the Boost 1.65.1 for both versions of Python I use: ./bootstrap.sh --with-python=python2 --with-python=python3 However, the first instance of the --with-python option has been ...
0
votes
2answers
72 views

Can a c++ compiler and includes be in one drive (system drive) and the code files themselves (.cpp) be at another? [closed]

Can I use my home drive as a place where the compiler and its files (and includes) are placed/installed, but use a different drive for my c/cpp source files? For example, gcc and includes are in /...
1
vote
2answers
371 views
11
votes
2answers
1k 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
1answer
27 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
48 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
47 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
153 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
45 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
127 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
50 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
318 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
82 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
1k 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
167 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?
0
votes
1answer
3k 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
65 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
29 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
114 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/...
3
votes
2answers
2k views

How can i compile C++ files through Visual Studio Code

Quick run-down: I'm completely new to Ubuntu, but not new to C++: I've coded on a Windows machine before, but I switched to Ubuntu Now I've installed VS code on Ubuntu as well as the C++ extension ...
0
votes
0answers
134 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
33 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
195 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
24 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
49 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
104 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
56 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
27 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
530 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
495 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
243 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
317 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
178 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 ...
5
votes
0answers
387 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
102 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 ...