Questions tagged [g++]

G++ is the C++ front-end of the Gnu Compiler Collection (GCC)

Filter by
Sorted by
Tagged with
0
votes
1answer
66 views

Problems when installing g++

I want to install g++ in my Ubuntu 20.04 by typing in the terminal sudo apt-get install g++ but it tells me this: Some packages cannot be installed. This can mean that an impossible situation was ...
0
votes
2answers
61 views

C compiler cannot create executables Ubuntu 16.04 gcc v9.3.0

I am trying to run the ./configure command for the cmph_2.0 library I downloaded. The gcc and g++ versions are 9.3.0 and I am using Ubuntu 16.04. However, I am getting the below error: This file ...
1
vote
1answer
107 views

Error: Unable to locate package gcc-10 while updating GCC and G++

Hi i am trying to update gcc and g++ on my Ubuntu 18.04. I currently have version 7.5 of both gcc and g++. I found this article where it is written that we can install a gcc and g++ version via a ...
0
votes
1answer
35 views

How to compile multiple all testbench components of Systemc

I have been trying to simulate all my testbench components of hierarchiral full adder systemc program. Previously, to simulate a simple systemc filenamed(hello_world.cpp) I have used: $ g++ -g -Wall -...
0
votes
0answers
23 views

Cmake build from source gives problems on make (probably c++14 standard not used)

I just updated my Cmake to the version 3.19 (previously 3.10) from sources. For this I now have two cmake versions the one from before in /usr/bin/cmake and the new one in /usr/local/bin/cmake which ...
0
votes
0answers
26 views

compilling with gcc and g++: vp8_multi_resolution_encoder - compiling with gcc showing so many error but g++ showing only one

First of all, i have built libvpx for x86_64-linux-gcc. then Trying to use examples/vp8_multi_resolution_encoder.c. I need to convert a a video file into multiple resolution using vp8 encoder. I have ...
0
votes
0answers
43 views

How to fix “ There was an error creating the child process for this terminal failed to execute the child process ”/tmp/<filename> (permission denied)

I was trying to run a c++ program from atom text editor.I have set gnome terminal for the gpp compiler . While I try to compile the program it shows the error " There was an error creating the ...
3
votes
1answer
97 views

How to install github.com/ioi/isolate on Ubuntu

I recently tried to make a C++ judge and heard about a tool called "Isolate" (available here): Run program within a sandbox, so that it cannot communicate with the outside world and its ...
0
votes
0answers
25 views

How to use gcc -7 if a have build essential installed (ubuntu 16.04)

I'm on Ubuntu 16.04 and installed build-essential because I need gfortran, gcc, g++. I'm trying to run Nek5000 but I get an error with makenek: gcc: error: unrecognized command line option ‘-fno-plt’ ...
0
votes
0answers
30 views

How to set higher version of gfotran (>4.8.5) as the default complier

I am using windows subsystem linux. By using gfortran --version, I see GNU Fortran (Ubuntu 4.8.5-4ubuntu8~14.04.2) 4.8.5. I tried to install higher version of gfortran, follows How do I install ...
1
vote
1answer
419 views

gcc/g++ 10 is installed but I can not use it on Ubuntu 20.04.2 LTS [duplicate]

I used the information here How to install g++ 10 on Ubuntu 18.04? to install gcc/g++ 10 on Ubuntu 20 and when I try to do it again: sudo apt install g++-10 Reading package lists... Done Building ...
0
votes
0answers
256 views

gcc: error trying to exec 'cc1plus': execvp: No such file or directory

i am trying to run the ovs faucet tutorial. One of steps is to compile the faucet container package. I am getting the following error when I tried to run it gcc: error trying to exec 'cc1plus': execvp:...
1
vote
1answer
426 views

C++ not able to install 32-bit gcc-9/g++-9-multilib on Ubuntu 18.04

I have multiple version of c++ compilers installed on my laptop. I am trying to build my code using g++-9.3 with a 32-bit compiler. So I tried to install the multilib by using sudo apt-get install gcc-...
0
votes
0answers
63 views

error in installing g++ in ubuntu [duplicate]

i've been traying to install g++ in my VMware ubuntu but i couldn't, i tried two different commands but still it's saying that there is an error, could you please help me with it. when i type sudo apt ...
0
votes
1answer
73 views

Is “Ubuntu Desktop for Developers” different from “Ubuntu Desktop”?

Is "Ubuntu Desktop for Developers" different from "Ubuntu Desktop"? If so, how do I download the Developers' version. I want to make sure that I get things like gcc, g++, gdb, ...
0
votes
0answers
66 views

Installing g++-7 without access to the internet

I have a problem ;) My wi-fi adapter has stopped working out of the blue and since I've no wire here I can't access the Internet from my Ubuntu machine. I've found the following command to fix the ...
0
votes
0answers
34 views

Why free() coredumps on one but not the other?

I have this very simple source code used as a test program: #include <stdio.h> #include <stdlib.h> int main() { FILE *fp; fp = fopen("file.txt", "w"); ...
0
votes
1answer
3k views

cmake cannot find c compiler even though gcc and g++ are installed

I am using Ubuntu 18.04 and I am trying to install cmake by executing the command: ./bootstrap But I am getting an error: Error when bootstrapping CMake: Cannot find appropriate C compiler on this ...
1
vote
1answer
4k views

`GLIBCXX_3.4.26' not found

usr/local/MATLAB/R2018b/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version GLIBCXX_3.4.26' not found (required by /usr/local/lib/libIlmImf-2_5.so.25). I am using this to install gcc 9.1.0 as ...
-1
votes
1answer
756 views

How to update c++ or g++ to version 14 or above? [closed]

How to update or install g++ 15 in Ubuntu 20.04?
1
vote
1answer
688 views

Installing gcc-8 g++-8 on ubuntu 18.04

Hi I tried installing gcc-8 and g++-8. It is giving below error $ sudo apt-get install gcc-8 g++-8 -y Some packages could not be installed. This may mean that you have requested an impossible ...
0
votes
0answers
105 views

Cannot install old versions of gcc

I need gcc-6 and g++-6 to compile a specific program (related with CUDA), I am tried to follow these instructions but for some reasons I get the following: > sudo apt-get install gcc-6 g++-6 -y ...
1
vote
1answer
200 views

Newbie: How to use QMAKE to compile and install FaustLive on Ubuntu Studio 20.04? Can't create Makefile with qmake w/ linux-g++

FaustLive is an open source prototyping environment for Faust (open source, compiled audio programming language). Here is FaustLive's GitHub: https://github.com/grame-cncm/faustlive After successfully ...
0
votes
0answers
278 views

QMainWindow: No Such File Or Directory

I have Ubuntu 20.04 64-bit installed as a VM on Win10. Starting up with Ubuntu - newbie. Essentially want to compile main.gcc from https://github.com/tschnz/Live-Video-Magnification What I have done, ...
2
votes
2answers
12k views

How do I install gcc 10.2 with sudo apt-get install gcc-x g++-x?

I was able to install gcc 10 but I need 10.2 not 10 and it keeps telling me gcc10.2 does not exist, well it does and I tried installing it by compiling and building it in the command line however that ...
1
vote
1answer
276 views

cannot use log4cplus on Ubuntu 20.04

here's my program: #include <string> #include <log4cplus/logger.h> int main() { log4cplus::Logger::getInstance(std::string("main")); } build: $ g++ main.cpp -llog4cplus /...
2
votes
0answers
161 views

Trying to build with boost filesystem: relocation … can not be used when making a shared object; recompile with -fPIC

Ubuntu 18.04, boost 1.65, g++ 7.5.0, cmake 3.10.2, GNU make 4.1. Pretty much everything at the default version for ubuntu 18.04. I'm trying to port software that uses a number of different boost ...
5
votes
1answer
1k views

Getting the most recent releases of gcc / g++ (11.0 or 10.2) on Ubuntu 20.04 LTS

I'd like to get the latest releases of g++ (and clang) via package manager (apt). Currently I need to compile gcc/g++ on my own which needs really a lot of time. Are there any repositories with "...
0
votes
2answers
135 views

`g++` commands isn't working and APT is reporting `g++` is installed

I installed Ubuntu 20.04 and I installed g++ using sudo apt install g++ sudo apt install build-essential but when I want to check the version using this command g++ --version it showed me and also ...
-1
votes
1answer
259 views

makefile shows error in g++ how to solve it

I am following the instructions in this tutorial https://github.com/tukl-msd/DRAMPower. When I do make -j4 an error message appeared to me g++ -O -W -pedantic-errors -Wextra -Werror -Wformat -Wformat-...
0
votes
2answers
452 views

g++ not detecting gtkmm [duplicate]

I have installed gtkmm using apt-get install libgtkmm-3.0-dev. When I try to compile using g++ test.cpp 'pkg-config gtkmm-3.0 --cflags --libs', I get error saying g++: error: pkg-config gtkmm-3.0 --...
1
vote
1answer
1k views

Cannot install g++-10

Running Ubuntu 18.04. I have added ppa:ubuntu-toolchain-r/test. I have successfully installed gcc-10: $ sudo apt-get install gcc-10 Reading package lists... Done Building dependency tree Reading state ...
1
vote
1answer
1k views

How to install gcov that is compatible with gcc version 10.1?

I'm trying to use CLions interface to gcov but I'm not using the default g++ compiler (for Ubuntu 18.04). Therefore my version of gcov (7.5) is incompatible with my compiler (10.1). How can I install ...
0
votes
1answer
739 views

On X86-64 Ubuntu 20.04, how come my 32-bit executable isn't?

I am trying to build a 32-bit executable (to see if it runs faster) on x86_64 Ubuntu 20.04 running on WSL on Windows 10. If I build the same code without the -m32 option in g++, the result runs. If I ...
2
votes
0answers
2k views

Package 'g++-4.8' has no installation candidate

So i recently updated to Ubuntu-20.04 and my g++-4.8 compiler got deleted when i tried to reinstall it using "sudo apt-get install g++-4.8" i get an error: "Package g++-4.8 is not available, but is ...
5
votes
2answers
3k views

QtCreator not recognizing linked libraries after upgrading Ubuntu to 20.04

I've upgraded from Ubuntu 18.04 to 20.04 and besides some nasty grub issues most things worked out of the box. But my QtCreator (Qt Creator 4.11.0, Based on Qt 5.12.8 (GCC 9.3.0, 64 bit)) is facing ...
0
votes
0answers
102 views

Accidentally replaced /usr/bin/ld with other binary file, installing through binutils just reverts back to what I replaced it with

I accidentally replaced /usr/bin/ld with the lua executable. So when I run ld, it triggers the lua interpreter. When I sudo remove ld and reinstall through: $ sudo apt-get install --reinstall ...
4
votes
0answers
792 views

Can we install older versions of gcc and g++ on ubuntu 20.04

I currently have Ubuntu 19.10 with gcc 9.1.2 I want to install previous versions of gcc for CUDA 8 (gcc 5 in this case). But I am getting this error: (base) ➜ ~ sudo apt-get install gcc-5 g++-5 ...
0
votes
1answer
7k views

How can I install a specific version of gcc on ubuntu 18.04

I'm trying to install gcc 7.3.0 on ubuntu 18.04. Ubuntu got updated and now my gcc is 7.5.0. I have seen other questions on stack overflow, but they are either for older versions which their solution ...
0
votes
0answers
183 views

g++-5 on Ubuntu 19.10

I'm currently trying to install some software (NUFEB) onto my home PC which is running Ubuntu version 19.10. This requires my computer to have the GNU C and C++ compilers gcc-5 and g++-5. I do not ...
0
votes
0answers
232 views

unrecognized option --build-id while compiling c++ code using g++

well Im kinda new to ubuntu. I tried compiling a c++ code. it was a simple Hello world code. I entered the following commands g++ temp.cpp and i get the following error message:-- /usr/bin/ld: ...
1
vote
0answers
2k views

g++ cannot find main function for simple “hello world” program

I have been trying to compile a simple hello world program in C++ on my lubuntu laptop. I use the command g++ -o out cta.cpp but I always get the error message below.. /usr/bin/ld: /usr/lib/gcc/...
0
votes
0answers
84 views

Reinstalling g++ and get bus error

Today I removed the g++ package with the commands: sudo apt remove g++ sudo apt purge g++ So, I reinstalled it with: sudo apt-get install g++ sudo apt install build-essential After the ...
1
vote
0answers
957 views

How to downgrade gcc, g++, and gfortran?

I'm trying to install the package mice in Rstudio but the installation fails and shows the error /usr/bin/ld: cannot find -lgfortran. I note that there is no directory called /usr/bin/ld in my PC, but ...
0
votes
1answer
441 views

Problem with g++ in Ubuntu 18 LTS [closed]

i'm trying to compiling this class: --> This is the Vector3D.h: #pragma once #include <math.h> class Vector3D{ private: float x; float y; float z; public: Vector3D() : x(0),y(...
32
votes
1answer
28k views

How to install g++ 10 on Ubuntu 18.04?

I would like to explore concepts and other new features in C++20, provided by g++ 10. However, I cannot seem to find any resources that allows me to apt-get a g++ 10 online? What is the easiest way ...
4
votes
1answer
4k views

How can I force an older version of g++ if I have a newer version?

g++ --version on my home machine reads 7.4.0, but a server I frequently do work on shows 4.8.5. Their servers don't support -std=c++11 compiler flags yet my home machine does. The most recent flag it ...
2
votes
1answer
1k views

Configure error “g++ version cannot be determined”

I am relatively new to using Ubuntu (ver. 18.04) and am trying to install a software package for research work. the package can be obtained from https://github.com/chetzer-ncpa/ncpaprop When i try to ...
2
votes
1answer
85 views

g++ can't compile

make[2]: /usr/bin/g++-5: Command not found CMakeFiles/uwlib.dir/build.make:62: recipe for target 'CMakeFiles/uwlib.dir/src/EvoLogics/command.cpp.o' failed make[2]: *** [CMakeFiles/uwlib.dir/src/...
1
vote
0answers
732 views

Need help installing gcc and g++-4.7 on ubuntu 18.04

Hi I need help installing gcc and g++ -4.7 in order to install matcaffe for my research project. I have tried to install from terminal directly using sudo apt-get install like other post suggest but ...

1
2 3 4 5 6