User forums > General (but related to Code::Blocks)
TDM-GCC 4.5 series (Latest: 4.5.2 - 2011-03-27)
ironhead:
One more question... I'm trying to build wxWidgets 2.8.11 using the 64-bit binaries and I'm hitting a snag:
--- Code: ---../../src/msw/thread.cpp: In static member function 'static THREAD_RETVAL wxThreadInternal::DoThreadStart(wxThread*)':
../../src/msw/thread.cpp:525:43: error: cast from 'void*' to 'THREAD_RETVAL' loses precision
../../src/msw/thread.cpp: In member function 'wxThreadError wxThreadInternal::WaitForTerminate(wxCriticalSection&, void**, wxThread*)':
../../src/msw/thread.cpp:845:21: error: cast from 'void*' to 'DWORD' loses precision
../../src/msw/thread.cpp: In member function 'void wxThread::Exit(void*)':
../../src/msw/thread.cpp:1165:28: error: cast from 'void*' to 'unsigned int' loses precision
make: *** [gcc_mswudll\monodll_thread.o] Error 1
--- End code ---
I'm using the Code::Blocks build instructions:
--- Code: ---mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1
--- End code ---
stahta01:
@ironhead:
wxWidgets 2.8 is NOT 64 bit compatible under Windows.
Tim S.
ironhead:
--- Quote from: stahta01 on August 12, 2010, 08:23:05 pm ---wxWidgets 2.8 is NOT 64 bit compatible under Windows.
--- End quote ---
That would explain it.
TDragon:
Greetings!
TDM-GCC 4.5.1 is now available!
The latest release of TDM-GCC incorporates GCC 4.5.1 in 32-bit and 32/64-bit editions, and includes LTO support.
The TDM release of GCC 4.5.1 is now available for download. As always, I've tested it on wxWidgets (2.8.11) and Code::Blocks SVN (6564) to ensure good compatibility.
* With the 4.5.1 release, GCC now includes support for LTO on MinGW and MinGW-w64 targets, so it's enabled in TDM-GCC.
* As with the 4.5.0 release, I've maintained the *reversal* of the GCC change that caused an out-of-memory problem building wxWidgets due to the forced emission of class inline functions in DLL code. This means you shouldn't have to perform any unusual steps when building wxWidgets.
WARNING!
In the TDM64 edition, a widespread change has been introduced that affects compatibility with previous versions. In summary, for the x86_64-w64-mingw32 target, symbol names WILL NOT, by default, have an additional underscore affixed, as was previously the case for this target (and remains the case for 32-bit targets). This was done for better compatibility with Microsoft's compiler.
This means that you must recompile all code that was compiled with an older 64-bit edition of GCC!
If you fail to recompile any part of a self-contained module, or inadvertently mix code compiled by an older edition with code compiled by a newer edition, you will encounter undefined symbol errors. Consider yourself warned.
(If you truly must, you can revert to the previous underscoring rule with the "-fleading-underscore" command-line option -- but don't do this unless you really know what you're doing.)
TDM-GCC is available in TWO editions:
Along with the classic MinGW 32-bit edition, a new TDM64 edition is also available. This 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
ptDev:
Unfortunately, the bugs related to the optimizer (my templates code crashes on runtime) are still present :(
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version