Questions tagged [gcc4.7]

Version 4.7 of GCC (GNU Compiler Collection). GCC is the de facto standard C compiler on Linux (though version 4.7 is not used by modern versions of Linux). The compiler collection supports many other languages and platforms as well.

Version 4.7.0 was released on 2012-03-22. Version 4.7.4 was released on 2014-06-12.

See also:

136 questions
1
vote
1 answer

long long int values are incorrectly printed

When I cross compile an application for target with an Armv7 core, variables with 'long long int' are incorrectly printed. typedef long long int vmm_int64; typedef unsigned long long int vmm_uint64; int main(int argc, char *argv[]) { vmm_int64…
Girish
  • 313
  • 1
  • 3
  • 12
1
vote
1 answer

Visual Studio 2008 run-time stack overflow warning when operator< recursive on all paths

The C++ code below generates the following warning in Visual Studio 2008: 1>c:...\sample.cpp(6) : warning C4717: 'operator<' : recursive on all control paths, function will > cause runtime stack overflow If I use the Sample class on any situation…
koppa
  • 13
  • 4
1
vote
1 answer

Issues of running C++11 executable compiled with gcc 4.7 on a computer with an older gcc / glibc / libstdc++

I am a newbie to C++ compilation in production environment I wonder if there are any issues in running a C++11 executable compiled with gcc4.7 ( on debian 6 ) on a computer with an older gcc version, an older glibc / libstdc++. Thanks EDIT : I want…
1
vote
2 answers

C++ I'm expecting a narrowing conversion error but not getting it

In the following code from Stroustrup's book we are warned against an error from a narrowing conversion which does not occur on my version GCC (4.7.2) #include using namespace std; int main() { int i1 = 7.2; int i2{7.2}; …
DuncanACoulter
  • 2,095
  • 2
  • 25
  • 38
1
vote
0 answers

c++11: Type transformation of an enum-class-type derivative via alias-template

Consider the following code, which compiles fine in clang but not in gcc (4.7.2): template using remove_ref_typed = typename std::remove_reference::type; // alias-template w/ 'typename' template using remove_ref = …
etherice
  • 1,761
  • 15
  • 25
1
vote
1 answer

G++ -M32 -M64 switches on Windows

How can I install gcc 4.7.2 for codeblocks that supports both 32 and 64 compilation? If I install the x32 bit compiler: x32-4.7.2-release-win32-sjlj-rev10 it will compile with -m32 but give a bunch of linker errors for -m64 If I install the x64 bit…
Brandon
  • 22,723
  • 11
  • 93
  • 186
1
vote
1 answer

mex files in 32-bit matlab on 64-bit Ubuntu

I am trying to compile object detection program from http://people.cs.uchicago.edu/~rbg/latent/, without any luck, however. I installed 64-bit Ubuntu 12.10, 32-bit MATLAB 2012a. I also have gcc compiler ivan@ubuntu:~$ gcc --version gcc…
Gnattuha
  • 211
  • 3
  • 11
1
vote
3 answers

Side-effect not working

I have created a buffer class to use with networking, and I use a side-effect to get the buffer pointer, as well as the size. I have created a simple test that displays the same behaviour as the class's getptr() function. char…
erai
  • 185
  • 1
  • 11
1
vote
2 answers

GCC compilation yields "real.h:53: error: 'SIZEOF_LONG' undeclared here (not in a function)"

I'm trying to compile GCC 4.7.2 on a Buffalo LinkStation Pro Duo (after unlocking it) which runs Linux 2.6.31.8 armv5tel. Unfortunately, make throws quite some errors, starting with gcc -c -DIN_GCC_FRONTEND -g -fkeep-inline-functions -DIN_GCC -W…
Tobias Kienzler
  • 25,759
  • 22
  • 127
  • 221
1
vote
1 answer

Templates and g++ 4.7

I have this code namespace MSL{ template class TListNode; template class TList; ... and template int TList::add(T v) { TListNode *pn; pn = new TListNode; ... and class TMergeNode { public: …
user1883163
  • 133
  • 9
1
vote
0 answers

macports gcc4.7 can't find pthread.h

I have installed gcc4.7 with macports and tryding to build Ogre3d 1.8. The problem is that pthread.h is not found. I can't find pthread.h anywhere on my system (Mac OSX 10.6.8) and I can't find any ports on macports for pthread. Does anyone know…
user499986
  • 213
  • 4
  • 9
1
vote
0 answers

Android r8b c++ shared library problems

This is a weird setup here. I compiled a custom NDK with GCC 4.7 (for Debian armhf chroot host). In testing, it compiles and runs regular c and c++ binaries on Android perfectly. When trying to compile a test shared library with C++…
LKD
  • 21
  • 2
1
vote
2 answers

GCC 4.7 on OS X Lion: cannot compute suffix of object files

I know this issue already discussed (include there), and no one time. But, unfortunately, I cannot solve this problem. So, I have OS X Lion, i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1, and I try to build gcc-4.7.0. First of all, I've already built…
Denis Shevchenko
  • 1,342
  • 2
  • 10
  • 23
0
votes
1 answer

why disable-shared in gcc 4.7 build together with gmp mpfr mpc for native compile?

enviroment: cpu: XEON NEHALEM E5530 os: SUSE 10 SP2 gcc: 4.1.2 m4,binutils,autoconf,automake: UPDATED newest for required by gcc 4.7 build. PATH/LD_LIBRARY_PATH set correct. object: native optimization for gcc php httpd. with -march=nocona…
woniushan
  • 1
  • 2
0
votes
0 answers

My updated gfortran compiler is requiring libraries that are older than those that my previous version of gfortran required - how do I fix this?

I updated the version of gfortran from GNU Fortran (GCC) 4.8.5 to version 6.3.0 in order to fix an issue with an ieee_arithmetic problem. When I did, I found that there was a whole set of new problems. The new compiler is requiring older…
Shawn
  • 179
  • 1
  • 15