Author Topic: How to use "-static"?  (Read 3294 times)

Offline Simbaba

  • Single posting newcomer
  • *
  • Posts: 9
How to use "-static"?
« 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.

Offline Simbaba

  • Single posting newcomer
  • *
  • Posts: 9
Re: How to use "-static"?
« Reply #1 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.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: How to use "-static"?
« Reply #2 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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: How to use "-static"?
« Reply #3 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

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

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org