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

All Questions

Tagged with
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 ...
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 ...
-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: ...
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. ...
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?
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 ...
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 ...
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 -...
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
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
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 ...
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 ...
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
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 ...
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
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 ...
9
votes
1answer
32k views

How do I install the latest gcc on FreeBSD?

How do I install the latest gcc on FreeBSD and set up the system so that this latest version would be used to compile further programs? At the moment of this writing, the latest release of gcc is ...
3
votes
3answers
2k views

Shortening build command

Is there any way I can shorten this openCV build command? g++ file.cpp -o newFileName `pkg-config --cflags --libs opencv` I tried adding: -o newFileName `pkg-config --cflags --libs opencv` to an ...
0
votes
1answer
2k views

How to set g++ 4.8 to be the default after installing? [closed]

After executing the following on Ubuntu 12.10 how do I set 4.8 to be the default C++ compiler? sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install g++-4.8 ...
5
votes
1answer
1k views

Can I use a chroot on my dev machine to build an application to run on embedded linux installation?

I am trying to develop an application to run on an embedded linux installation. It comes with an older version of libc than I have on my development maching. If I were to create a chroot environment ...