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

Make errors when running ./bootstrap to compile and install cmake-3.13.1 on Ubuntu 12.04

I ultimately want to install a program called DosageConvertor that requires a version of cmake that is 3.2 or later. Therefore, I am trying to install a more recent version of cmake since the ...
0
votes
1answer
23 views

How to link installed pakage with g++ / atom with gpp-compiler package?

I can't figure out how to link external libs / installed packages when compiling. I have G++ and atom with the gpp-compiler package by kriscross07 and I want to link my GLWF3 Hello World programm with ...
0
votes
1answer
30 views

g++ fails with an undefined reference to symbol 'dlclose@@GLIBC_2.2.5' even with '-ldl'

I'm trying to compile a program with GLAD and SDL2 using scons (though scons isn't really relevant since g++ is the issue) scons runs the following command to compile part of the program: g++ -o out/...
2
votes
1answer
262 views

Makefile 42: recipe for target 'util.o' failed

I am getting this error: ~/Distrib$ make all /usr/bin/g++ -O3 util.cc -I/home/shah/Distrib util.cc: In function 'into countLines(const char*)': util:19:8: error: 'exit' was not declared in this ...
1
vote
0answers
35 views

dpkg: error processing package cpp (--configure)

Out of a sudden I receive this error on every apt install or apt upgrade. Using Ubuntu 18.04 dpkg: dependency problems prevent configuration of gcc: gcc depends on cpp (>= 4:7.3.0-3ubuntu2.1); ...
2
votes
1answer
57 views

cpp vs c++ compiler?

What is the difference between the "cpp" and "c++" compilers in Ubuntu? I've been attempting to clarify the various compiler synonyms used in Ubuntu (and Linux distros in general) before deciding ...
0
votes
0answers
25 views

Hot Plug event of gadget serial device using libudev

I am writing a C++ console application where I want to monitor and capture any hotplug events on only my /dev/ttyGS0 port. I am using Ubuntu 16.04 on my linux device (Boundary Device). I've been ...
0
votes
1answer
54 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
86 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
80 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
156 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
205 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
83 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
276 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
29 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
22 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
151 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
19 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
316 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
18 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
17 views

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

Pressing Ctrl+F5 doesn't output anything. Can you help me please ?
1
vote
0answers
365 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
77 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
882 views
11
votes
2answers
2k 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
28 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
66 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
57 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
191 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
52 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 ...
1
vote
0answers
199 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
53 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
344 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
126 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
2k 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
276 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
4k 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
93 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
31 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
126 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
3k 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
191 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
36 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
234 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
37 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
197 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
1answer
109 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
28 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 ...
1
vote
0answers
654 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 ...