Questions tagged [gcc3]

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

Version 3.0 was released on 2001-06-18. Version 3.4.6 was released on 2006-03-06.

See also:

33 questions
22
votes
5 answers

Strange behavior when casting an int to float in C

I have a doubt concerning the output of the following C program. I tried to compile it using both Visual C++ 6.0 and MinGW32 (gcc 3.4.2). #include int main() { int x = 2147483647; printf("%f\n", (float)2147483647); …
favq
  • 739
  • 1
  • 11
  • 25
10
votes
1 answer

Error compiling GCC 3.4.6 in Ubuntu 14.04

I am trying to compile GCC 3.4.6 in Ubuntu 14.04 x64. It already has newer version of GCC-4.8.2. I ran ./configure --prefix=/usr/local/gcc-3.4 and make. I ended up in several errors for which I could find solutions on searching. Error 1 Error 2…
Kumara Guru
  • 181
  • 1
  • 10
9
votes
1 answer

are gcc-3 binaries compatible with gcc-4

I have a static library that has been compiled with gcc 3.4.3 .I would like to use this in code that will now be compiled with gcc-4. I've read vaguely that gcc-3 and gcc-4 binaries are not compatible and that the library will need to be recompiled…
Abhijith
  • 2,592
  • 5
  • 18
  • 30
4
votes
1 answer

Issue on RHEL4 release using boost 1.36 and C++

I am struggling with a mysterious problem I only see on my RHEL4 release build. Some of my unit tests (using boost 1.36 unit test framework) fail on RHEL4 (gcc 3.4.6) and using release build-type. I do not see the problem using RHEL5 release or…
squashed.bugaboo
  • 1,338
  • 2
  • 20
  • 36
3
votes
2 answers

Is this a gcc optimization bug?

Here's my code: bool func(const MY_STRUCT *const ptr, some_struct *x, int y) { printf("IN: %p\n", ptr); // ok for (int i = 0; i < y; ++i) { if (ptr->foo(x[i].key) == 0) { return false; } } printf("OUT:…
iCoder
  • 456
  • 3
  • 11
3
votes
2 answers

Question about ubuntu gcc compiler

I installed the build-essential package for ubuntu x86_64, compiling c programs and c++ programs work fine, but in the compiled binary, "Ubuntu linaro" appears. is there a way to remove this?
Daniel
  • 3,017
  • 12
  • 44
  • 61
3
votes
3 answers

dynamic_cast failed when hiding symbol

I have many static libraries. One is static_lib_a.a. I create a dynamic library, dynamic_lib.so to put them together. In static_lib_a.a, it uses xerces 3.1.1 to parse xml. The following is the code snippet in static_lib_a.a xerces::DOMElement…
Blanc Yang
  • 35
  • 6
3
votes
3 answers

Why isn't the gcc 4.x.x series compilers installed by MinGW by default?

Currently, MinGW's only installs the 3.x.x series of the gcc compiler by default. However, it looks like the 4.x.x series of compilers have been out for some time, and as others have mentioned, it seems to work just fine. Is there any reason why…
Robert P
  • 15,707
  • 10
  • 68
  • 112
2
votes
2 answers

Examples showing how switching to a modern C compiler can help discover bugs?

I am preparing a note to convince people that switching from GCC2 to GCC4 (as a C compiler) is a good idea. In particular, I think it can reveal existing bugs. I would like to give examples, but as a Java programmer my experience of this situations…
Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373
2
votes
0 answers

"undefined reference to _spill" : What is _spill and why does gcc want to access it?

I'm developing on a custom embedded platform with a custom version of gcc, which is based on gcc-2.8.0 (egcs-2.91.02). Yes, it's old. It's for a CoolRISC C816 core. I face a strange error sometimes, when during the link of my embedded C project gcc…
Tim
  • 1,853
  • 2
  • 24
  • 36
2
votes
3 answers

Having static const variables with GCC 3.3 similar to GCC 3.4

When using g++ 3.4.6 (with ld 2.15.92.0.2), I can write: class ConstantContainer { public: static const uint16_t MyConstant1 = UINT16_C(0x4321); static const uint32_t MyConstant2 = UINT32_C(0x87654321); static const uint64_t MyConstant3…
Anton Samsonov
  • 1,380
  • 17
  • 34
2
votes
2 answers

Curiously Recursive Template Pattern in GCC 3.4 (MoSync to be exact)

I'm currently trying to write an Artemis like game component/entity system in C++. I was planning on getting this system to work with a cross platform tool for writing applications on Android and iOS called MoSync. Unfortunately MoSync currently…
1
vote
1 answer

alternatives to GCC 3.4.3 option -fstack-protector-all?

I'm trying to set option -fstack-protector-all in GCC 3.4.3 compiler for enabling some stack smashing protection scenarios. However when compiling with this i got error: unrecognized command line option "-fstack-protector-all" . So seems this option…
Agnius Vasiliauskas
  • 10,935
  • 5
  • 50
  • 70
1
vote
0 answers

Which section of the modern compiled code controls the exit of a c program?

So, In the binary files of C program compiled using old gcc versions like 3.3.6 there is a section like .dtors but there is nothing like that in the binary files of C program compiled using new gcc versions like 11.3.0 I want to know what will be…
Vignesh SB
  • 11
  • 4
1
vote
1 answer

Upgrading GCC from 2.9x

I've been trying to upgrade the compiler from 2.95.2 on my PS2 Linux machine (mips) and my head is about to explode. I am not going to claim that I am good with linux. I'll go over the process I've done first. gcc 3.3.1 download, configure,…
user245019
1
2 3