Re: Plugins and referencing *variables* in the loading program

2004-10-09 Thread Maarten Boekhold
Maarten Boekhold wrote: Maarten Boekhold wrote: I can post my test program if anybody is interested... Please see attached. Damned and double damned... The previous version had an obvious error in it. Sorry all for wasting your band-width. Attached is a correct version. Maarten vartest.tar.

Re: Plugins and referencing *variables* in the loading program

2004-10-09 Thread Maarten Boekhold
Maarten Boekhold wrote: I can post my test program if anybody is interested... Please see attached. $ tar zxf vartest.tar.gz $ cd vartest $ ./autogen.sh ... $ make install ... $ /usr/local/bin/plugintest.exe 5 ** Message: trying to open /usr/local/lib/cygplugin.dll val coming from the executable:

Re: Plugins and referencing *variables* in the loading program

2004-10-09 Thread Maarten Boekhold
Hi Brian, Don't know if you noticed, but the thread you are referring to was started by me as well :) All the material discussed in there I managed to apply just fine. However, that thread deals with importing *functions*, not variables. I created a stand-alone test in which the plugin is tryi

Re: Plugins and referencing *variables* in the loading program

2004-10-08 Thread Brian Dessent
Maarten Boekhold wrote: > suppose I have application A, that loads (gmodule_open) a module B. 'A' > contains a variable: > > A.c: > G_MODULE_EXPORT int var = 1; > > B refers to that variable: > > B.c: > G_MODULE_IMPORT int var; > > B is linked with a A.def file:

Re: Plugins and referencing *variables* in the loading program

2004-10-08 Thread Igor Pechtchanski
On Fri, 8 Oct 2004, Maarten Boekhold wrote: > Hi, > > suppose I have application A, that loads (gmodule_open) a module B. 'A' > contains a variable: > > A.c: > G_MODULE_EXPORT int var = 1; > > B refers to that variable: > > B.c: > G_MODULE_IMPORT int var; > > B is linked wi

Plugins and referencing *variables* in the loading program

2004-10-08 Thread Maarten Boekhold
Hi, suppose I have application A, that loads (gmodule_open) a module B. 'A' contains a variable: A.c: G_MODULE_EXPORT int var = 1; B refers to that variable: B.c: G_MODULE_IMPORT int var; B is linked with a A.def file: A.def: IMPORTS var = A