User forums > General (but related to Code::Blocks)

TDM-GCC 4.5 series (Latest: 4.5.2 - 2011-03-27)

<< < (5/23) > >>

stefanos_:
Thank you very much for your reply. I am pretty sure that others as well, will experience the same situation and they will ask for the same thing.

If I may, I would suggest you point that out to either your website as a notification, or to Code::Blocks's forum as a separate sticky announcement.

Thanks for once again.

stefanos_

thomas:
Hmm... seems I was a little bit too enthusiastic :(

With gcc 4.5, I'm now getting this in one of my projects:
In file included from z:\gcc45\bin\../lib/gcc/mingw32/4.5.0-dw2/include/c++/cmath:629:0,
                 from [...]/mingw32/4.5.0-dw2/include/c++/random:38,
                 from [...]/mingw32/4.5.0-dw2/include/c++/bits/stl_algo.h:66,
                 from [...]/mingw32/4.5.0-dw2/include/c++/algorithm:63,
                 from [...]:
[...]/4.5.0-dw2/include/c++/tr1_impl/cmath:147:11: error: '::double_t' has not been declared
[...]/4.5.0-dw2/include/c++/tr1_impl/cmath:148:11: error: '::float_t' has not been declared

Unluckily, I can't seem to reproduce it in a simple Hello World project (compiles just fine when I try there!). If I typedef float_t and double_t before including <algorithm>, the error is fixed.

Windres reports a syntax error on a RC file which is 100% good (can work around by using the previous version's binary).

And finally: [...]/4.5.0-dw2/../../../crt2.o:crt1.c:(.text+0x28): undefined reference to `__dyn_tls_init_callback' is where I gave up. Note that I'm not using any TLS at all, at least not consciously -- maybe OpenAL does behind my back :)
It might be noteworthy to tell that the same, identical project compiles its 974 files with a total of 3 warnings (two are a unused parameter in a callback function, and the third comes from using a MSVC import library) under gcc 4.4 with pretty much every available warning turned on.

Seems with gcc 4.5 we're still a bit too deep in alpha stage. Still, your build gets much closer to "successful" than the original MinGW build, which emits about 1500 warnings and 50 errors before bailing out, most of which are totally obscure (and which I honestly didn't bother to look at further), and some of which are related to Graphite not being compiled in.
So, still, great work :)

TDragon:

--- Quote from: thomas on June 11, 2010, 05:02:03 pm ---And finally: [...]/4.5.0-dw2/../../../crt2.o:crt1.c:(.text+0x28): undefined reference to `__dyn_tls_init_callback' is where I gave up. Note that I'm not using any TLS at all, at least not consciously -- maybe OpenAL does behind my back :)

--- End quote ---
This happens when you have an older installation in X:\MinGW (or when not all object files have been rebuilt with the new GCC). Per the README and the Getting Started installation notes, GCC currently searches "/mingw" no matter what, so if you have multiple installations you can't have one there. I will *probably* change this in the next release, although it will mean a further departure from GNU standards.

If you can send me an RC file that should work and doesn't, I can downgrade the installer default to the previous binutils release and try to make sure it gets fixed for the next one.

Finally, if you're interested in installing the TDM64 edition, I'd be interested to see if you got the same errors using that edition and "-m32".

-John E. / TDM

thomas:

--- Quote from: TDragon on June 11, 2010, 07:25:18 pm ---This happens when you have an older installation in X:\MinGW (or when not all object files have been rebuilt with the new GCC).
--- End quote ---
My installations are Z:\gcc44 and Z:\gcc45, respectively. The installations share a folder that holds the OpenGL, OpenAL, Ogg, Vorbis includes (made available to the compiler via the -I flag, which should be legitimate). Rebuild was done by hitting the "clean rebuild" button in c::b which hopefully should sufficiently erase everything. So, hmm... not sure what's wrong then.


--- Quote ---If you can send me an RC file that should work and doesn't
--- End quote ---
Will see to that on monday (not at that machine now).


--- Quote ---Finally, if you're interested in installing the TDM64 edition
--- End quote ---
Generally intersted yes, but unluckily no Windows 64 system here (only Linux 64, though maybe Wine may be worth trying?).

TDragon:

--- Quote from: thomas on June 13, 2010, 02:15:58 am ---
--- Quote from: TDragon on June 11, 2010, 07:25:18 pm ---This happens when you have an older installation in X:\MinGW (or when not all object files have been rebuilt with the new GCC).
--- End quote ---
My installations are Z:\gcc44 and Z:\gcc45, respectively. The installations share a folder that holds the OpenGL, OpenAL, Ogg, Vorbis includes (made available to the compiler via the -I flag, which should be legitimate). Rebuild was done by hitting the "clean rebuild" button in c::b which hopefully should sufficiently erase everything. So, hmm... not sure what's wrong then.

--- End quote ---
Odd. If you feel like sending me the link command line I might see if I can figure it out and/or reproduce it.


--- Quote ---
--- Quote ---Finally, if you're interested in installing the TDM64 edition
--- End quote ---
Generally intersted yes, but unluckily no Windows 64 system here (only Linux 64, though maybe Wine may be worth trying?).

--- End quote ---
You can run the TDM64 edition on a 32-bit machine; although the compiler can generate 64-bit code, it's built as 32-bit binaries.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version