delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Date: | Sat, 09 Oct 2004 11:39:59 +0400 |
From: | Maarten Boekhold <boekhold AT emirates DOT net DOT ae> |
Subject: | Re: Plugins and referencing *variables* in the loading program |
In-reply-to: | <4166DB2D.CAC35F2C@dessent.net> |
To: | cygwin AT cygwin DOT com |
Message-id: | <416795CF.9060502@emirates.net.ae> |
MIME-version: | 1.0 |
User-Agent: | Mozilla Thunderbird 0.8 (Windows/20040918) |
References: | <41667322 DOT 8040706 AT emirates DOT net DOT ae> <4166DB2D DOT CAC35F2C AT dessent DOT net> |
X-IsSubscribed: | yes |
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 trying to reference a *variable* in the loading program, and that *fails*. I can post my test program if anybody is interested... Maarten Brian Dessent wrote: > 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: >> >> A.def: >> IMPORTS >> 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? > > > You might want to read this thread: > <http://sources.redhat.com/ml/cygwin/2004-10/msg00339.html> -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |