[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

gmodule



according to the dlopen man page:

       External  references in the library are resolved using the
       libraries in that library's dependency list and any  other
       libraries previously opened with the RTLD_GLOBAL flag.  If
       the executable was linked with the flag "-rdynamic",  then
       the  global symbols in the executable will also be used to
       resolve references in a dynamically loaded library.

i believe that this means that functions, variables, etc. used in the
calling application are usable by the library that the application opens.
does that sound correct?

is this ability specific to dlopen, or is it pretty standard on systems
with dynamic libraries? i don't really care about windoze compatibilty,
just most unix systems.

does this functionality find its way into gmodule?

i'm working on a plugin interface, but the plugins will need to access
functions in the main app. i really don't want to write a library of
these functions since they are integral to the app.

thanks


-greg


http://www.op.net/~finklesk/index.html


> And what's wrong with being named Peter?
If linus was peter, Linux would be called penix? (just guessing) ;)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]