Author Topic: static linking of codeblocks - help!  (Read 8335 times)

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
static linking of codeblocks - help!
« 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.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4299
    • Code::Blocks IDE
static linking of codeblocks - help!
« Reply #1 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.
Be patient!
This bug will be fixed soon...