Code::Blocks Forums
User forums => Help => Topic started by: zorro on December 06, 2006, 09:54:13 am
-
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.
-
Hi !!
How can I tell my application where to find xmsw26_gcc_custom.dll?
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 (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/loadlibrary.asp)
What goes wrong?
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
-
Hi,
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 ?
I've just followed the instructions on http://www.wxwidgets.org/wiki/index.php/CodeBlocks_Setup_Guide (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.
-
If your static building problem is still there, can you send the command/log ?
-
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