Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
HelloWorld Plugin on Ubuntu 11.04
oBFusCATed:
What is the difference in terms of debugging?
stahta01:
--- Quote from: hibbity on June 03, 2011, 12:20:55 am ---Why shared? Is it not possible to static link a plugin into a GUI application? It would make debugging easier, for one.
--- End quote ---
A plugin is something designed to be added or removed at runtime. If statically linked it can NOT be added or removed.
Tim S.
hibbity:
--- Quote from: oBFusCATed on June 03, 2011, 01:12:28 am ---What is the difference in terms of debugging?
--- End quote ---
Here is an example. wxCustomButton has been added to a GUI. There are no build errors, no runtime errors, except for this one nagging problem.
After OnExit() has been called, the app hangs. This is attributable to the newly added wxCustomButton widget, because it never occurred before it was added to the GUI project. So, how then do you go about debugging this -- when the problem exists in a shared library. For example how would you set a breakpoint?
oBFusCATed:
What will be the difference if wxCustomButton was a static lib instead of shared lib?
hibbity:
--- Quote from: oBFusCATed on June 09, 2011, 05:50:26 pm ---What will be the difference if wxCustomButton was a static lib instead of shared lib?
--- End quote ---
Both present the same challenge in terms of debugging. Speaking for myself (who is just learning to use the gnu debugger).
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version