Hi!
I am using Linux where "shared object" is the term for a library's binary (i.e. the equivalent of a DLL on Windows sytems).
The main program is not statically linked to the plugins, but when provided with a "LoadPlugin <file>" directive in its configuration, it will try to load the plugin as a library by creating a handler (using dlopen) for the respective file (a shared object or DLL) and then call a function...
User Profile
Collapse
-
Calling a main program's non-global function from a library
Hi!
I am writing a plugin for a program which will be loaded as a shared object. In the plugin I need to use a function (actually, several functions) from the main program that is not included in any headers but just in the file it is used in. Declaring the function as extern did not work, i.e. I can compile the plugin but get a runtime error "undefined symbol: create_lq_hello " when the plugin is being loaded by the main...
No activity results to display
Show More
Leave a comment: