News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Building wxWidgets example with static library

Started by young, October 27, 2005, 05:12:36 PM

Previous topic - Next topic

young

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?


thomas

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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."