Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: rickg22 on March 07, 2005, 06:21:41 am

Title: static linking of codeblocks - help!
Post by: rickg22 on March 07, 2005, 06:21:41 am
How do I configure codeblocks NOT to build any dll but to link it all to one exe file?

I *REALLY* need this for debugging, since GDB doesn't handle dll's very well.
Title: static linking of codeblocks - help!
Post by: mandrav on March 07, 2005, 11:12:59 am
It will be difficult for me (it's been over two years since I researched it), but I will try to remember the reasons why you can't link it statically.

It's the only way to have a single wxApp object. If you link codeblocks.dll statically (i.e. static libcodeblocks.a), then it will have a different wxApp from the main app's and nothing will be working...
Keep in mind that the sdk (codeblocks.dll), as well as the plugins, can have their own message loops (and infact they do). With a single wxApp object marshalling the app everything works fine.

Yiannis.