Hi,
I got many "undefined reference to ..." error when compiling a project which has a dynamic linking "Debug" target and a static linking "Release" target.
Here are the steps I create my project and targets:
1. Create a Dialog based application using wxFormBuilder as GUI builder. On the configuration page, only check the "Debug" configuration. On configuration options page, check the "Use wxWidgets DLL" option.
2. Add a "Release" target from menu: File->New->Build target. On configuration options page, uncheck the "Use wxWidgets DLL" option.
When I build the "Release" target, the error came out.
I figure out the error is because some windows libraries(libkernel32.a, libuser32.a, libgdi32.a, ...) are not linked in linker setting.
I end up with modifying the wizard.script of wxWidgets project wizard. I have created several projects by using modified wizard without any problem. But I don't know if this is the correct solution.
The attached file is the modified wizard.script.