Questions tagged [g++]
48
questions
1
vote
1
answer
4k
views
What exactly is g++?
There's one thing that I don't understand - and that is the question what is g++?
I've searched for the wide web (in every way I've thought of, at least). No result yielded (the closest that I've ...
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
...
1
vote
0
answers
931
views
Docker container with centos 6.6 and c++
I'm trying to create a docker contaienr with CentOS 6.6 and c++:
Step 1/37 : FROM centos:6.6
---> 3d7ac13b921a
Step 2/37 : RUN yum -y update
---> Using cache
---> b41e216c79de
Step 3/37 : ...
0
votes
1
answer
993
views
Eclipse: g++: command not found
I have installed Eclipse via System Workbench for STM32.
Meaning I have an icon now named System Workbench for STM32, and when I open it Eclipse opens.
With that IDE I can successfully create ...
1
vote
1
answer
5k
views
How do you change versions of gcc on windows?
I've been using g++ 4.8.1, mingw. Now, I've just updated to 6.3.0, however when I use g++ in command prompt it still seems to use the older version. How do you change between versions on windows?
0
votes
1
answer
542
views
What is the windows cmd command equivalent to ubuntu command timeout 5s a.exe < input.txt
I am developing an online judge for my university. I need to timeout every program after 5 seconds for measuring time limit. my input is input.txt file and i am compiling and getting output in ubuntu ...
0
votes
1
answer
425
views
Windows equivalent for unix regular expressions
Is there an replacement for
**/*.*
**/*.cpp
so that i can do sth like this:
gcc -std=c++14 -I ./include/ -o ./bin/main ./src/**/*.cpp
(the way i go when i don't use any makefile)
on windows i did ...
-1
votes
1
answer
4k
views
How can I compile C++ code into an independent Windows executable? [closed]
I've got a C++ program that I can compile and run on Mac OS 10.11 using g++. I also was able to compile and run it on Windows 10 using Visual Studio. However, when I tried to run the .exe file on a ...
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:...
0
votes
1
answer
4k
views
Compiler tools, execv and "exec format error" under s390x chroot
I have a Debian 8 x86_64 machine with two chroot environments. The first is armel and the second is s390x. armel was installed last week, and s390x was installed recently. armel is fine both before ...
1
vote
0
answers
98
views
G++ Compiler Stalls [CodeBlocks]
I am using CodeBlocks under Kali Linux and the g++ compiler stalls.
SOMETIMES, I hit compile and at the bottom I get the message: g++ -fexceptions ...etc build main.o ... and NOTHING happens. If I ...
0
votes
1
answer
209
views
Switch Server to use GCC version 4.8.1
I'm banging my head against a wall, I followed the instructions detailed here: https://superuser.com/a/677640
When I ran yum install devtoolset-2-gcc-4.8.1 devtoolset-2-gcc-c++-4.8.1 this was the ...
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
...
0
votes
1
answer
760
views
Compile C++ 11 on Damn Small Linux?
DSL does not include any compiler (aside from a very basic ANSI C compiler), so I need to install g++ on it. Unfortunately the only gcc/g++ I could find for DSL linux is a version from 2006 (here).
...
0
votes
2
answers
876
views
Why does a c++ code run significantly longer on one computer than another? [closed]
The code is exactly the same -- I copied it from one computer to another. The code is compiled with g++-4 (4.9.1) obtained from fink on OSX on both machines, and is not run in parallel.
Compiler ...