User forums > General (but related to Code::Blocks)
TDM-GCC 4.7 series (Latest: 4.7.1 - 2012-09-15)
TDragon:
Unfortunately, no. The libstdc++ threading support is based on pthreads, while TDM-GCC is currently built with Win32-style threads. There is not a 1-to-1 correspondence between the Linux (pthreads) threading model and the Windows threading model, and ideally someone needs to contribute a Windows version of the libstdc++ threading support.
There has been some noise in the last year or so about Mingw-w64's winpthreads library being able to bridge the gap. However, the library is still classified as experimental and I have seen a few bug reports on MinGW-w64's mailing list that make me leery of it. Furthermore, the additional layer of indirection caused by trying to make Windows look like pthreads will only cause additional problems -- we've seen this already with GCC's OpenMP support.
All that said, I may attempt a pthreads-based build at some point in the future and see what comes of it. But your threading support just isn't there right now.
oBFusCATed:
--- Quote from: TDragon on September 23, 2012, 08:13:21 pm ---All that said, I may attempt a pthreads-based build at some point in the future and see what comes of it. But your threading support just isn't there right now.
--- End quote ---
Thank you for the clarification.
alexpux:
Hello!
I have long used the TDM-GCC to work. But since it is not updated often passed on http://sourceforge.net/projects/mingwbuilds/. If anyone is interested, there is a building with threads=win32 and with threads=posix using winpthreads. There are releases from 4.6.2 to 4.7.2. There is support for job server for mingw32-make under windows. Project based on mingw-w64. There is a development page for this project on github - https://github.com/niXman/mingw-builds. We would be grateful if you test these assemblies with CodeBlocks.
PaulS:
Briefly: I can't build wxWidgets. Compiles run & then the link gets an exit code 5. What am I doing wrong?
In Detail: Running Windows 7 with all the latest updates.
Uninstalled the old Mingw and wxWidgets 2.8.11 (which has been working finme for ages).
Downloaded and ran tdm-gcc-4.7.1-2.exe. No obvious problems. ld--version says 2.22 and g++ --version says 4.7.1.
Download and ran wxMSW-2.8.12-Setup.exe. Again, no obvious problems.
From wxWidgets-2.8.12/build/msw ran:
mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=0 BUILD=release
The compiles run and then what appears to be the link step starts and runs many minutes ending with a windows popup saying that the program isn't responding and then the message "collect2.exe: error: ld returned 5 exit status"
Things I've tried:
- reinstall wxWidgets & run with the clean option first. No difference
- Reinstall wxWidgets & try a unicode build. No Difference.
- An old post to a WxWidgets forum says to unZip again. After a failure I ran the setup program again & retried the make. Compiles skipped as expected and the link step fails just as before.
Must be something dumb I'm doing since no one else is complaining. Any help is much appreciated.
gd_on:
Works perfectly for me but with a different command line :
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 USE_OPENGL=1 VENDOR=cb CXXFLAGS="-fno-keep-inline-dllexport"
Main difference with yours is UNICODE=1 and probably more important CXXFLAGS="-fno-keep-inline-dllexport" (look for this on the main Tdragon post.)
gd_on
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version