Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

static linking of codeblocks - help!

(1/1)

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.

Navigation

[0] Message Index

Go to full version