This is the mail archive of the
mailing list for the Cygwin project.
Plugins and referencing *variables* in the loading program
- From: Maarten Boekhold <boekhold at emirates dot net dot ae>
- To: cygwin at cygwin dot com
- Date: Fri, 08 Oct 2004 14:59:46 +0400
- Subject: Plugins and referencing *variables* in the loading program
suppose I have application A, that loads (gmodule_open) a module B. 'A'
contains a variable:
G_MODULE_EXPORT int var = 1;
B refers to that variable:
G_MODULE_IMPORT int var;
B is linked with a A.def file:
var = A.exe.var
When I use 'var' in B, it has a completely wrong value.
Can the windows linker resolve references to external variables when
loading a library with gmodule_open/dlopen?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html