J
jon.apostoles
I have a program that is going to have plugins used for various
capabilities. The main program creates a class (AppCore) which handles
everything. This class contains another class (PluginController) that
handles loading the shared objects via the dl* functions. When I
create the plugins, I link them using -shared.
The plugins themselves are derived from a class (Plugin)... inside of
the Plugin class there is a variable to hold a pointer back to the
AppCore object. This is so the plugins can call various functions from
AppCore object created at start up.
Should I have to link in the AppCore.o the plugins when I'm creating
them? It seems like it wont work unless I do that.. I'm not sure I
understand why I need to link those in.. shouldn't the main program
export those symbols?
capabilities. The main program creates a class (AppCore) which handles
everything. This class contains another class (PluginController) that
handles loading the shared objects via the dl* functions. When I
create the plugins, I link them using -shared.
The plugins themselves are derived from a class (Plugin)... inside of
the Plugin class there is a variable to hold a pointer back to the
AppCore object. This is so the plugins can call various functions from
AppCore object created at start up.
Should I have to link in the AppCore.o the plugins when I'm creating
them? It seems like it wont work unless I do that.. I'm not sure I
understand why I need to link those in.. shouldn't the main program
export those symbols?