Questions tagged [g++]
48
questions
15
votes
2
answers
7k
views
Python ./configure does not find g++ compiler
I'm trying to compile Python 3.4.1 on an emulated ARM machine (with Debian 7). ./configure gives me
checking for g++... no
but g++ is installed. So what could be the problem?
I know it's not ...
8
votes
2
answers
26k
views
Install GCC / G++ Version 4.9 in Linux Mint
I always like to have the latest version of things, particularly if that thing is gcc, g++ and there has recently been a revision to the c++ standard.
I have forgotten what ppa's I need to add to my ...
5
votes
1
answer
15k
views
How can I properly configure the g++ include path with mingw64?
I have installed msys2/mingw64 because I need the g++ compiler. Now, I want to compile some c++ oce which requires openblas. I have installed the package using pacman -S mingw-w64-x86_64-openblas. ...
3
votes
2
answers
3k
views
How do I compile FFMPEG & Libaom without PIE
I am trying to compile FFMPEG and Libaom from source apparently because the gcc and g++ compilers in Ubuntu 18.04 by default has enabled the following option by default: --enable-default-pie
$ gcc -v
...
3
votes
2
answers
2k
views
compilation on cygwin64 doesn't work with g++ 4.9.2
I have
GNU make version 4.0
g++/gcc version 4.9.2
Command make clean works perfectly
But when I use command make to compile
I got this error
C:/cygwin64/lib/gcc/x86_64-pc-cygwin/4.9.2/cc1plus.exe:...
3
votes
1
answer
4k
views
Installing a GCC/G++ for my mac OSX 10.8
My problem is simple, I would like to get the OSX/BSD version of the GCC and G++ compilers from the GNU.org website. However after some research (as described below) I learned that Apple uses LLVM ...
3
votes
2
answers
18k
views
Version `GLIBCXX_3.4.15' not found in CentOS (in file /usr/lib/libstdc++.so.6)
I try to use a program and I get the following error.
/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found
Under /usr/lib64 the libstdc++ I see is libstdc++.so.6.0.13 (and a soft link).
...
2
votes
2
answers
8k
views
alias gcc='gcc -fpermissive' or modifying ./configure script
I am compiling quite big project from source. The compilation always ends with:
error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
I have already compiled this project one year ...
2
votes
2
answers
20k
views
How do I compile 64bit program with gcc/g++ on a 64bit Linux?
I'm using Ubuntu 10.04 LTS, and want to make a program to run on a large Debian server that has 300GB memory. With command:
g++ Encoder.cpp -std=c++0x -m64 -o Encoder.o
it returns something like
...
2
votes
2
answers
4k
views
Add a permanent compiler option to g++
I am using a g++ 4.7 on Ubuntu 12.04 to compile my c++ code, and it won't be compiled unless an -std=gnu++11 option is added to my command like this:
g++ -std=gnu++11 main.cpp
Is there a way to add ...
2
votes
0
answers
279
views
Is it possible to use Libtorch with VS Code?
I have followed the instructions provided by Pytorch to installing C++ distributions of PyTorch:
https://pytorch.org/cppdocs/installing.html
However, this command produces an error:
cmake --build . --...
2
votes
0
answers
495
views
Cannot install g++6 on alpine3.9
I need to install g++6 for building spidermonkey->couchdb on alpine3.9. I am unable to install it. Note that it is on the package list available on alpine 3.9 here.
$ docker run -ti alpine:3.9 sh
/ # ...
1
vote
6
answers
2k
views
g++ compiler : unable to compile
This is the first time that I'm using the g++ compiler to compile my c++ programs. I have installed cygwin g++. and I'm trying to run a very simple program to display "hello", to see wether it would ...
1
vote
2
answers
4k
views
Can't install build-essential on Ubuntu Jaunty 9.04
Here's my /etc/apt/sources.list:
#deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/ jaunty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade ...
1
vote
1
answer
2k
views
Sublime Text manually specify g++ location
Long story short, I'm using sublime to write some small C++ programs in my spare time. I'm currently on a Windows 7 box and I do not have administrative rights to adjust the Path Environment Variable ...