Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Simbaba on April 04, 2013, 05:20:25 pm

Title: How to use "-static"?
Post by: Simbaba on April 04, 2013, 05:20:25 pm
I want to compile one dll with "libwxmsw29u_core.a".

But when "LoadLibrary" in another excutable app, popup error "can't find the "wxmsw294u_core_gcc_custom.dll"

Setting the linker with "-static", still no help.
Title: Re: How to use "-static"?
Post by: Simbaba on April 04, 2013, 05:24:27 pm
And LoadLibrary is so lower, waiting a little long time. Why wxWidget startup so slowly?

Can anyone give me some adv.
Title: Re: How to use "-static"?
Post by: BlueHazzard on April 04, 2013, 06:29:50 pm
But when "LoadLibrary" in another excutable app, popup error "can't find the "wxmsw294u_core_gcc_custom.dll"

is the dll in the system32 folder or in the folder of the executable?

btw this is a wxWidgets question and not related to c::b and so off topic and i think it will be locked
Title: Re: How to use "-static"?
Post by: stahta01 on April 05, 2013, 03:10:08 am
If it gets locked; make sure Full Compiler Logging is ON.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F)

And, post the "build log" and your question on http://forums.wxwidgets.org/ (http://forums.wxwidgets.org/)

Tim S.