All Questions
16
questions
0
votes
1
answer
408
views
Installing gcc 4.7.2 in MacOS (Monterrey)
I am trying to install gcc 4.7.2 (I need this version in order to be able to compile an old code), but I can not seem to find a proper way to do it. It looks like the only available options is to do ...
-1
votes
1
answer
205
views
Conditional statements with braces versus without braces - which is fast in C, C++ [closed]
I know this is silly, but I'm quite curious to know that is there any speed difference using conditional statement (i.e. for, if, while, do while) in C++ with braces and without braces.
FYI : I know ...
0
votes
1
answer
187
views
Charm4py/charm++, GCC error when installing
firstly I am going to explain the issue and at the bottom you'll find the question/-s.
I'm trying to install charm4py using pip/pip3/apt (all of em), after 1.5 hours it fails and I notice it's charm++...
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
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
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
...
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 ...
0
votes
1
answer
4k
views
update gcc /g++ on CentOS 5.9
I would like to update gcc/g++ on my CentOS 5.9.
The version I have is 4.1.2 : Would it be possible to update it to 4.4.7 like CentOS 6.4 WITHOUT updating the entire operating system?
It looks to me ...
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 ...
1
vote
2
answers
2k
views
downgrade gcc/g++ after upgrading; compiler error
I just upgraded gcc/g++ from 4.4 to 4.8 (via this method How can I update gcc to the latest version in Ubuntu 10.04?). I realized that 4.8 is going to break a lot of my code and now I want to roll ...
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
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 ...
0
votes
1
answer
288
views
Unable to install software on Ubuntu 8.04
I have recently installed 8.04 Ubuntu onto an industrial board and applied the vendor kernel modifications to it. I need to develop applications on another desktop to run on this board in C++ but I am ...