Bug #16562 2009-12-16 22:51

dmcminn

-mthreads not set when linking wxWidgets project

When using MinGW on Windows, with wxWidgets 2.8.10 built using the following command line:

mingw32-make -f makefile.gcc BUILD=release MONOLITHIC=1 SHARED=0 UNICODE=1

Note that the default in this configuration is USE_THREADS=1.

If you use Code::Blocks to create a wxWidgets project then build it the C++ sources are compiled with the -mthreads option specified but the link is not performed using -mthreads. The link should be performed with -mthreads set, which is what the wxWidgets samples do when USE_THREADS=1.

You can verify the behaviour by turning on full compiler output, or you will also notice that the resulting exe does not depend on mingwm10.dll.

Category
Compiler
Group
 
Status
Closed
Close date
2010-01-09 18:04
Assigned to
biplab
biplab 2010-01-09 18:04

This bug is now fixed in HEAD.

Thank you for reporting it.