User forums > Help
Link errors when trying to build a static version of my wxWidget program
(1/1)
zorro:
I've managed to instal C::B and wxWidgets under windows. When i tried to execute my first generated program it complained about a missing wxmsw26_gcc_custom.dll. Putting this DLL in the same directory as where my application is located worked fine but is a bit unsatisfactory.
1) How can I tell my application where to find wxmsw26_gcc_custom.dll?
Then I tried to avoid using this DLL by making a static version of wxWidgets. I've change a few compiler/linker directories but the linker gives numerous undefined references. (I've also recompiled the wxWidgets stuff with build option SHARED turned off.)
2) What goes wrong?
Thanks in advance.
dje:
Hi !!
--- Quote ---How can I tell my application where to find xmsw26_gcc_custom.dll?
--- End quote ---
You can change your environment PATH variable.
For more details, http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/loadlibrary.asp
--- Quote ---What goes wrong?
--- End quote ---
I already followed wxWidgets procedure using mingw and there was no problem but I need to rework a little makefile.gcc file to make it compliant with CodeBlocks RC2 version.
How do you build it ?
Dje
zorro:
Hi,
--- Quote ---I already followed wxWidgets procedure using mingw and there was no problem but I need to rework a little makefile.gcc file to make it compliant with CodeBlocks RC2 version.
How do you build it ?
--- End quote ---
I've just followed the instructions on http://www.wxwidgets.org/wiki/index.php/CodeBlocks_Setup_Guide by typing
mingw32-make.exe -f makefile.gcc clean USE_XRC=1 SHARED=0 MONOLITHIC=1 BUILD=release UNICODE=0
in the command prompt.
So, I didn't change the makefile.
Thanks again.
dje:
If your static building problem is still there, can you send the command/log ?
zorro:
The problem is more or less solved: I switched to the latest nightly built version of C::B and apparently the IDE was able to call the linker correctly. At least is seems as there were no errors in my static wx libraries. Still, i don't know how tell C::B 1r2 how to make a static executable. Moreover, I've still problems with setting search paths correctly, but a will post this question as a separate item.
Again thanks for your reply
Navigation
[0] Message Index
Go to full version