Skip to main content

Questions tagged [g++]

The tag has no usage guidance, but it has a tag wiki.

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 ...
John Lee's user avatar
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 ...
Georgi Stoyanov's user avatar
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 : ...
wutzebaer's user avatar
  • 437
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 ...
Michel Keijzers's user avatar
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?
Dave's user avatar
  • 141
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 ...
shawon's user avatar
  • 141
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 ...
baxbear's user avatar
  • 516
-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 ...
aswine's user avatar
  • 137
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:...
Lord Rixuel's user avatar
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 ...
jww's user avatar
  • 12.3k
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 ...
RatkinHHK's user avatar
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 ...
Austin Biggs's user avatar
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 ...
Mike Wong's user avatar
  • 131
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). ...
notadam's user avatar
  • 718
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 ...
Stershic's user avatar

15 30 50 per page