Author Topic: TDM-GCC 4.6 series (Latest: 4.6.1 - 2011-09-23)  (Read 48468 times)

Offline TDragon

  • Lives here!
  • ****
  • Posts: 936
    • Twilight Dragon Media
TDM-GCC 4.6 series (Latest: 4.6.1 - 2011-09-23)
« on: September 23, 2011, 08:21:03 pm »
Greetings!

TDM-GCC 4.6.1 is now available!
The latest GCC stable release series includes some stability fixes for Windows targets, better C++11 support, and lots of other new features.

The TDM release of GCC 4.6.1 is now available for download. As always, I've tested it on wxWidgets (2.8.12) and Code::Blocks SVN (7458) to ensure good compatibility. You can build Code::Blocks with either the TDM32 edition ("out of the box"), or the TDM64 edition (using the MinGW-w64 project's runtime and the "-m32" flag for 32-bit compilation). Since GCC incorporates the "-fno-keep-inline-dllexport" flag beginning with the 4.6 series, you will probably need to use this flag when building wxWidgets as a MONOLITHIC dll (mingw32-make ... CXXFLAGS="-fno-keep-inline-dllexport").

TDM-GCC comes in TWO editions:
You can choose between the classic MinGW 32-bit edition and the new TDM64 edition. The TDM64 edition is based on the MinGW-w64 runtime API and the x86_64-w64-mingw32 GCC target, and can create both 32-bit and 64-bit code, with the "-m32"/"-m64" compiler flags. Please be aware, if you build Code::Blocks yourself, that it only works as 32-bit code ("-m32") on Windows, currently -- though that will hopefully change soon. Also, please never mix 32-bit object files (.o), libraries (.a), DLLs, or EXEs with 64-bit versions, and don't report it as a bug if you inadvertently do.

More information and downloads are available at <http://tdm-gcc.tdragon.net/>. TDM-GCC includes support for C, C++, Fortran, Objective-C/C++, and Ada (MinGW edition only), as well as support for the OpenMP multithreading extensions, packaged in a simple Windows installer.

Disclaimer:
As always, please remember:
  • TDM-GCC is not formally affiliated with or endorsed by the MinGW project.
  • No level of support for TDM-GCC is in any way guaranteed (although a best effort is made to fix bugs as they are found or forward them to GCC Bugzilla).

Cheers,
John E. / TDM
http://tdm-gcc.tdragon.net/ - TDM-GCC compiler suite for Windows (GCC 5.1.0 2015-06-28, 32/64-bit, no extra DLLs)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5187
Re: TDM-GCC 4.6 series (Latest: 4.6.1 - 2011-09-23)
« Reply #1 on: September 24, 2011, 12:01:46 am »
as always, cheers for John. Thank you very much :-)

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: TDM-GCC 4.6 series (Latest: 4.6.1 - 2011-09-23)
« Reply #2 on: September 24, 2011, 11:14:28 pm »
Great work, and thanks - it solved my problem. :)

Offline Freem

  • Almost regular
  • **
  • Posts: 219
Re: TDM-GCC 4.6 series (Latest: 4.6.1 - 2011-09-23)
« Reply #3 on: September 25, 2011, 04:34:48 pm »
Thanks to man who made mingw recent versions easy to install for me when I use windows :)

Offline zhl

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: TDM-GCC 4.6 series (Latest: 4.6.1 - 2011-09-23)
« Reply #4 on: September 25, 2011, 04:38:47 pm »
I can't find TDM-GCC 4.5.2 in the page:http://tdm-gcc.tdragon.net/ and in sourceforge I also can't find the TDM-GCC 4.5.2.exe consist of all necessary programs because the nightly builds in this forum are complied by GCC4.5.2.  I run a console project compiled by TDM-gcc4.6.1 the cmd window appears after quite a few seconds but if using gcc4.5.2 the window rapidly appears.

Offline Freem

  • Almost regular
  • **
  • Posts: 219
Re: TDM-GCC 4.6 series (Latest: 4.6.1 - 2011-09-23)
« Reply #5 on: September 25, 2011, 04:42:23 pm »
I can't find TDM-GCC 4.5.2 in the page:http://tdm-gcc.tdragon.net/ and in sourceforge I also can't find the TDM-GCC 4.5.2.exe consist of all necessary programs because the nightly builds in this forum are complied by GCC4.5.2.  I run a console project compiled by TDM-gcc4.6.1 the cmd window appears after quite a few seconds but if using gcc4.5.2 the window rapidly appears.

In the sourceforge website, you will find TDM-GCC in "TDM-GCC 4.5 series".  I just tried to find it. (but didn't try the installer, because I'm not using windows at home)

Offline TDragon

  • Lives here!
  • ****
  • Posts: 936
    • Twilight Dragon Media
http://tdm-gcc.tdragon.net/ - TDM-GCC compiler suite for Windows (GCC 5.1.0 2015-06-28, 32/64-bit, no extra DLLs)

Offline zhl

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: TDM-GCC 4.6 series (Latest: 4.6.1 - 2011-09-23)
« Reply #7 on: September 26, 2011, 01:09:21 am »
Many thanks!

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: TDM-GCC 4.6 series (Latest: 4.6.1 - 2011-09-23)
« Reply #8 on: September 26, 2011, 03:56:58 pm »
Unluckily, this build rejects pretty much every piece of code I've ever written with multiple definition of
`typeinfo for A'
(A being specialized template classes or classes with virtual functions defined inline in the base) while LTO is active. Which is a real shame seeing how LTO is the one big thing.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12063
    • Travis build status
Re: TDM-GCC 4.6 series (Latest: 4.6.1 - 2011-09-23)
« Reply #9 on: September 26, 2011, 04:17:50 pm »
This seems to be your problem: http://sourceware.org/bugzilla/show_bug.cgi?id=12762

In the bug they mention a workaround, you could try it...

The big thing about gcc 4.6 is it c++-0x support, not lto, lto will be ready/usable at gcc 4.7 or 4.8 :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: TDM-GCC 4.6 series (Latest: 4.6.1 - 2011-09-23)
« Reply #10 on: September 26, 2011, 06:02:23 pm »
This seems to be your problem: http://sourceware.org/bugzilla/show_bug.cgi?id=12762

In the bug they mention a workaround, you could try it...
That's exactly the same, yes. The workaround seems to do, though funnily now I have to rename main to __main (since the linker complains otherwise) and manually link against the CRT... on the positive side, executables are considerably smaller than they used to be, just by flipping the magic switch.

Quote
The big thing about gcc 4.6 is it c++-0x support, not lto, lto will be ready/usable at gcc 4.7 or 4.8 :)
Yeah well, that would be just constexpr, really. It's the only truly interesting thing in 4.6 (from my perspective) that 4.5 did not already support.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline Freem

  • Almost regular
  • **
  • Posts: 219
Re: TDM-GCC 4.6 series (Latest: 4.6.1 - 2011-09-23)
« Reply #11 on: September 26, 2011, 09:11:52 pm »
Sorry for the off topic question, but, what is LTO?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12063
    • Travis build status
Re: TDM-GCC 4.6 series (Latest: 4.6.1 - 2011-09-23)
« Reply #12 on: September 26, 2011, 09:21:46 pm »
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5187
Re: TDM-GCC 4.6 series (Latest: 4.6.1 - 2011-09-23)
« Reply #13 on: September 26, 2011, 11:30:29 pm »
I find also very interesting in 4.6 :
- nullptr
- range based for

:-)

Offline byuu

  • Single posting newcomer
  • *
  • Posts: 2
Re: TDM-GCC 4.6 series (Latest: 4.6.1 - 2011-09-23)
« Reply #14 on: September 27, 2011, 01:29:57 am »
When I compile with -fopenmp, I receive the following:

g++: error: libgomp.spec: No such file or directory

It worked with TDM/GCC 4.4, but not 4.5 or 4.6. Is there any way I can fix this?