Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: young on October 27, 2005, 05:12:36 pm
-
When I create a wxWidgets project from the built-in template and specify a static library, the app always fails with an error saying it cannot find wxmsw26_gcc_cb.dll. If I resolve the path issue then the app runs... but clearly with the DLL for what is supposed to be a statically linked exe.
It appears that the built-in template does not properly create a statically linked project but one which uses the DLL. (I presume this is a bug in the supplied template?)
How can I build a statically-linked project?
-
Do you actually have wxWidgets on your computer (i.e. either compiled your own, or from a DevPak)?
From "wxmsw26_gcc_cb.dll", I gather that you used the import library which comes with the SDK (if the template did that, then this may indeed be a bug, unless you have a flawed path setup). This lib links against the custom dll that Code::Blocks uses. This is good for plugin development, but not for "normal" programs.