Stack Exchange Network

Stack Exchange network consists of 175 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 [g++]

The tag has no usage guidance.

0
votes
2answers
34 views

Can't build Darknet with CUDNN support

I`m trying to compile the sources from https://github.com/pjreddie/darknet using manjaro linux. But the build is having problems when I try to use the CUDNN switch. g++ -DOPENCV -I/usr/include/...
0
votes
0answers
28 views

error: Regular expressions are not functional, you need g++ 4.9.0 or greater

When I install the stacks in my Ubuntu 16.04: ... checking for sqrt... no checking for functional regular expressions... configure: error: Regular expressions are not functional, you need g++ 4.9.0 ...
1
vote
1answer
636 views

G++/GCC installed but still: error trying to exec 'cc1plus': execvp: No such file or directory

Full error message: arm-linux-gnueabihf-g++: error trying to exec 'cc1plus': execvp: No such file or directory So I have got this error message while trying to build a C++ project on my machine ...
0
votes
0answers
85 views

Issues with /lib64/libstdc++.so.6 when trying to run c++ program from within a shell script (Centos 7) [duplicate]

I am having a problem trying to run a C++ application from within a shell script. I am compiling the program calling make from the shell script. For compiling, I am using g++ 7.3.0 which is found in /...
1
vote
1answer
475 views

Difference between the linker flags

I'm adding c++ runtime and exception support to the Linux kernel. For that, I need to provide my own lib/gcc and lib/libstdc++instead of the standard libraries provided by the compiler. So, I am ...
0
votes
3answers
1k views

g++ can't find .so files in /usr/local/lib/ even when added to /etc/ld.so.conf, and ldconfig having been run

I am running Ubuntu 16.04. I have a C++ source file second.cpp which looks like this: #include <iostream> #include <boost/filesystem/operations.hpp> namespace bfs = boost::filesystem; ...
-2
votes
1answer
228 views

error: types may not be defined in ‘sizeof’ expressions

I'm trying to compile linux kernel verison 4.14.41 and got the following error: ./arch/x86/include/asm/acpi.h: In function ‘void arch_acpi_set_pdc_bits(u32*)’: ./include/linux/build_bug.h:30:45: ...
0
votes
1answer
42 views

g++ -v says the program isn't currently installed but I know it is

I'm using Ubuntu 16.04 and when I run the command g++ -v I get The program 'g++' is currently not installed. You can install it by typing: sudo apt install g++ So then I run sudo apt install g++ ...
0
votes
3answers
40 views

How can I limit the number of error messsages displayed after compiling a C++ program?

I am compiling a C++ program with g++ and each time get a huge number of errors, forcing me to scroll up every time I want to view the first (and most relevant) error. I am wondering if there is an ...
1
vote
0answers
568 views

g++46: error trying to exec 'cc1plus': execvp: No such file or directory

I'm on FreeBSD 9.2. The gcc version is 4.2. My project needs c++11 so I install gcc 4.6 and in Codeblocks I change the build option to support c++11 and in toolchain section I write g++46 and gcc46. ...
0
votes
1answer
272 views

Passing arguments to g++

I want to create a bash command for recursively finding all c++ files then returning last changed file (single file) and compile it, so far I wrote this find . -name '*.cpp' -type f -exec stat --...
2
votes
2answers
2k views

How do I disable g++ displaying notes for errors?

When compiling, errors are often accompanied by a lengthy series of notes (cyan). Is there a g++ flag to disable this, only showing the error itself?
-1
votes
1answer
39 views

Make issues while installing Fingerprint Feature Extractor software [closed]

I am trying to use an old software that extracts fingerprint data from an image. For the life of me, I cannot get the program to compile. I specifically am trying to run the make command and build the ...
2
votes
0answers
293 views

cannot find -lm linker error

This question is highly related to cannot find -lm, but the error appears when I'm invoking cross G++ Linker. I'm trying to follow through the documentation provided by Using Eclipse with ARTIK SDK. ...
0
votes
2answers
2k views

Offline Install of g++ for Debian

I have an offline Debian machine onto which I need to install g++, gdb, etc. (I believe it's the "build essentials" package.) I do not have access to an online Debian machine from which to get ...
2
votes
3answers
6k views

How can we install devtoolset-4.0 on CentOS 6.7

I tried to install devtoolset-4.0 to use g++ version 5.x via sudo yum install devtoolset-4 However, I got No package devtoolset-4 available. Is there any way to get to that?
2
votes
0answers
1k views

GCC/G++ compiles code to shared library instead of executable [closed]

I am having a rather puzzling problem. Recently, whenever I compile a program using GCC or G++, the compiler creates a shared library rather than an executable file. The library still runs if I ...
7
votes
2answers
12k views

How install g++ 4.9 on debian stretch

I tried install on my Debian strench g++-4.9 and I didn't find package via apt-cache search g++-4.9 Oldest version I found only g++-5 Where can I get g++-4.9?
1
vote
0answers
775 views

configure failed because of See `config.log' for more details

I am trying to compile Tcl, but I got the following error: ~/apps/tcl8.6.6/unix> ./configure --prefix=$HOME/.local/Tcl checking whether to use symlinks for manpages... no checking whether to ...
1
vote
2answers
3k views

g++ - how to use -std=c++14 be default?

I want g++ to use -std=c++14 by default without having to type it every time. How would I do this?
-1
votes
1answer
621 views

How to upgrade my g++ to 5.3 or 6

I am on Debian 7.9 and this question may seems very familiar to you, I have also seen some links, but when this was answered the GCC-5 was in testing place they suggested it as a work around, since we ...
20
votes
4answers
45k views

How to install GCC 5 on debian jessie 8.1

I tried many solutions to install update for my gcc compiler on debian server. None of them worked. I need the compiler update to use new features of c++11, as this provides a stable libcxx11 ABI, and ...
2
votes
1answer
1k views

Can I configure gcc to always output to the code file's name instead of a.exe?

By default, when running gcc test.c, gcc will output the executable as a.exe. Is there a way to globally override this so that gcc will create test.exe? This assumes that there's only one input file -...
1
vote
2answers
978 views

problem finding g++ program, despite it being installed

gcc version 5.3.0 20151204 (Ubuntu 5.3.0-3ubuntu1~14.04) I have a problem with g++ When I search for g++ I find nothing! So I tried to install it; it seems like g++ is already installed and it's ...
4
votes
5answers
10k views

No space left on device on CentOS7

My machine which OS is CentOS7 have to backup 50G data into MySQL. But, there is no space left on the device. But there are many spaces on /home. How can I make user that there are enough space for ...
0
votes
1answer
44 views

g++ server.cpp -Wall

I have a program written in C++ in Linux I just download Vim editor I gave this command to compile: g++ server.cpp -Wall when I come to run it I use ./a but it does not work can give me the ...
8
votes
3answers
37k views

How to install latest stable release of GCC in Linux Mint?

I want to install the latest version of GCC (GNU compiler collection) in Linux Mint 17.3. Currently g++ --version returns 4.8.4, whereas the latest stable release is 5.3.
-1
votes
2answers
2k views

Can't Compile Hyperion1.2 with g++ MinGW Compiler

Hey all I'm trying to compile Hyperion 1.2 and am getting errors. Here is the command I am using: x86_64-w64-mingw32-g++ Hyperion-1.2/Src/Crypter/hyperion.cpp -o Hyperion.exe The errors I'm getting:...
0
votes
1answer
380 views

Distcc ld error

I want to compile supertuxkart for notebook on my main computer (v-mint, with distcc daemon). My actions: Clone git+svn repos from official sources. (compile/{stk-code,stk-assets}). cd compile/stk-...
7
votes
1answer
21k views

g++ doesn't recognize standard 14 (-std=c++14)

I'm on Ubuntu 14.04 and have g++ 4.8.5 (Ubuntu 4.8.5-2ubuntu1~14.04.1). When trying to use -std=c++14 parameter, g++ outputs: unrecognized command line option '-std=c++14' Even when running apt-get ...
0
votes
1answer
1k views

ld error “/opt/bin/ld: skipping incompatible /lib/libm.so.6 when searching for /lib/libm.so.6” when using g++

I run into this error when I try to test compiling a very simple program: #ifdef __cplusplus extern "C" #endif int main () { return 0; } And I got the following error message if I compile using g++: ...
1
vote
2answers
277 views

stuff in quotes are hidden in the compilation error message for gcc?

this happens with both g++ and gcc as whenever I tried gcc file_name and the above happens.
0
votes
1answer
306 views

I had g++, was using it, installed make, and now g++ is impossible to install

I am running Debian 8.1. I installed g++ via the terminal using apt-get. I then installed build-essential, and saw something in the terminal about "removing g++". I freaked out a little, because I've ...
0
votes
1answer
590 views

Installing latest version of gcc on HPC cluster locally

I am working on an HPC cluster that has the CentOS installed. My project requires the installation of the g++ >= 4.8.1 on the server. However, the gcc (g++) installed on the cluster is 4.4. And whats ...
3
votes
1answer
796 views

Error while building snipersim: “relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC”

I know that snipersim isn't a very typical "project" but this is more a linux/linking problem than anything else, so I think it goes here. I have also contacted the developers, but have yet to receive ...
0
votes
0answers
175 views

Error building nodejs from source on Debian

I keep getting the same error when running make on nodejs source code. I've looked and some common problems seem to be lack of a c compilier or install g++. I have these and have double checked. Here ...
0
votes
1answer
2k views

Link libraries when compiling g++

I am trying to link some libraries my g++ code and I am getting the following error: $ g++ -O myprob.o -o myprob -Wl,-rpath $PATH/lib -L$PATH/lib -lprob7_cpp -lprob7 g++.exe: error: c:\mypath;c:\...
0
votes
0answers
165 views

Weird G++/AR Compilation issue

I'm working a patch-set to compile dpkg and APT onto Cygwin. I've almost got everything working, but I'm encountering some weird behavior with ar/g++ that I can't explain. APT's stock Makefile uses ...
0
votes
0answers
485 views

custom gcc install include files

I have a custom installation of g++ 4.8.1 in my home directory. However the include files in that installation have no extensions! (except for tgmath.h, fenv.h, complex.h, and cxxabi.h) Thus even if ...
0
votes
1answer
561 views

gdb displays not all variables in KDevelop [closed]

Hoping, the image describes the issue much better than I can do. Generally, I'm debugging a multithreaded application in KDevelop with gdb. I'm debugging the app step by step (F11 shortcut) and have ...
3
votes
1answer
2k views

ld cannot find existing 32-bit libm

I'm only posting after exhausting all other answers I could find on google. I still can't figure out my problem. I try to use g++ to compile in 32-bit on a Red Hat machine. This is my command: BITS=...
3
votes
1answer
2k views

Install gcc4.9 on openSuse 13.1

I need to download and install g++4.9 in order to work with regex in c++11 for a school project. I downloaded the source but it seems it does not work .. I searched for the rpm and 1-ClickInstall and ...
0
votes
1answer
874 views

How do i write a shell script so that when i compile my c++ program it will put the binary into the Binary Directory

I have a directory called Binary and bunch of source files: ./ ├── Binary/ ├── lesson02.cpp ├── lesson04.cpp └── lesson06.cpp when I compile the source code g++ lesson01.cpp -o lesson01 I want ...
2
votes
2answers
1k views

Running ubuntu binary on CentOS with all shared libs installed results in ld SIGSEGV

I'm trying to get a binary compiled on Ubuntu to run on CentOS 7 (both 64bit, one host, the other vm). So far I've copied the binary with all the shared libs. I no longer get the missing library ...
2
votes
1answer
18k views

How to set C++11 as my default compiler?

I am using Ubuntu. When programming in C++, the nullptr keyword is not recognized by the compiler. It says it's not declared at this scope. It doesn't work, even though I set the flag -std=c++11.
0
votes
3answers
934 views

Do we need to enable G++ on RHEL 6.1

I have RHEL6.1 but I can't compile using g++, when I execute g++, I get the below : -bash: g++: command not found so I assume I don't have g++ but I do have gcc installed. When I run gcc -v. I ...
40
votes
2answers
93k views

linux + g++: command not found

I want to install on my Linux red-hat machine gettext-0.19.1.tar.xz. First I do the following cd gettext-0.19.1 ./configure make During make it fails on g++: command not found libtool: compile: ...
3
votes
1answer
1k views

sudo environment: “g++: command not found”

I have a relatively fresh RHEL 6.5 install, on to which I have installed from source GCCC 4.9. After I installed GCC 4.9, I uninstalled the distro-provided older GCC version via: sudo yum remove gcc ...
5
votes
1answer
16k views

How to install g++ by command line in opensuse 13.1

How can I install g++ by command line in Opensuse? I don't want to use YaST.
5
votes
2answers
26k views

Error in compiling file using gcc: “/bin/sh: g++: command not found”

I want to compile a c++ program in Fedora Linux, but the program isn't compiled correctly. I got the following error: /bin/sh: g++: command not found make[1]: [*.o] Error 127 make[1]: Leaving ...