User forums > Help
Static Build in Codeblocks
wumbo:
Hi guys,
I have compiled wxWidgets as an static-ansi-release build on Ubuntu.
Everything works fine in Codeblocks except my build, because Codeblocks creates my binary as a dynamically linked binary.
How can I let Codeblocks build a static linked binary as already provided in my wxWidgets build.
Thanks
MortenMacFly:
--- Quote from: wumbo on August 12, 2009, 06:22:34 pm ---How can I let Codeblocks build a static linked binary as already provided in my wxWidgets build.
--- End quote ---
Use the appropriate compiler and linker options in the build properties.
wumbo:
Thanks for your reply but I already added "static" compiler flags but it doesn´t work anyway...
MortenMacFly:
--- Quote from: wumbo on August 12, 2009, 09:05:54 pm ---Thanks for your reply but I already added "static" compiler flags but it doesn´t work anyway...
--- End quote ---
It's not enough (and even wrong) to enable "static" as linker (!) flag. You'll need to setup the wxWidgets defines, includes and lib names accordingly.
Why don't you just use the wx wizard that ships with C::B and let C::B create such a project setup for you?
wumbo:
Cause I don´t know wx wizard, have never heard of it and don´t know where to find, but I will have a look.... :)
Thanks for your help
Navigation
[0] Message Index
[#] Next page
Go to full version