News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

static linking of codeblocks - help!

Started by rickg22, March 07, 2005, 06:21:41 AM

Previous topic - Next topic

rickg22

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.

mandrav

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.
Be patient!
This bug will be fixed soon...