Questions tagged [gcc4]

Version 4.x of GCC (GNU Compiler Collection). It's the de facto standard C compiler on Linux and supports many other languages and platforms as well.

Version 4.0.0 was released on 2005-04-20. Version 4.9.4 was released on 2016-08-03.

See also:

184 questions
-2
votes
1 answer

Same old story - VS vs GCC 4.6.1

The code below compiles fine with VS2010 but fails to compile with gcc 4.6.1: The error from gcc: *C:...\Calculator_engine_impl.h|20|error: no match for call to '(std::string {aka std::basic_string}) (__gnu_cxx::__normal_iterator >&,…
smallB
  • 16,662
  • 33
  • 107
  • 151
-2
votes
1 answer

is there any way to use google test tool on gcc 4.5.2 compiler?

i am use google test c++ freamwork to test my project but facing some issue for your reference see the compilation errors as follow. src/exclusions/Gtest/../../include/gtest/internal/gtest-port.h:972:37: error: ‘nullptr’ was not declared in this…
Dhiraj
  • 13
  • 7
-2
votes
1 answer

What exactly -ffast-math option does while compiling with gcc

Can any one help in making me understand what does -ffast-math option does when compiled with gcc. I see a difference of 20 sec in my programs execution time when executed with -O3 and -ffast-math compared to only use of -O3
pavan
  • 979
  • 3
  • 11
  • 21
-3
votes
1 answer

Compiler flag in GCC (C)

I have read the GCC documentation and man. If I compile the code as (1) gcc -o test test.c I get some results when executing it. If I compile it as (2) gcc -O -o test test.c I get different results when I run it. Reading the GCC man, I…
1 2 3
12
13