This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: global data in DLL's
- To: Roger Wells <ROGER dot K dot WELLS at saic dot com>
- Subject: Re: global data in DLL's
- From: Charles Wilson <cwilson at ece dot gatech dot edu>
- Date: Mon, 15 Oct 2001 11:39:38 -0400
- CC: cygwin at cygwin dot com
- References: <00ea01c15575$a91d7860$f05a798b@mtg.saic.com>
Umm...so you've been explicitly #defining stuff as *_imp__stuff all this
time? That's NOT the right way to do it. You should be using
declspec(dllimport) stuff instead -- which will do the right thing,
automatically. See dllhelpers-0.2.6 here:
http://www.neuro.gatech.edu/users/cwilson/cygutils/V1.1/dll-stuff/
(BTW, the very latest binutils allows you to dispense with all that
_imp__stuff completely -- but it only works with gcc/binutils. See
dllhelpers-0.2.9 for more info.
--Chuck
Roger Wells wrote:
> Up until gcc 2.95.2 global data needed to be redefined as: global ->
> (*__imp_global) or (*_imp__global)
> as of 2.95.3 it seems that only (*_imp__global) works.
> Can this be overridden? Can it be reversed? I have lots of build scripts
> that depend on the former definition. These all need to be modified in
> order to migrate the 2.95.3
>
> Roger Wells, P.E.
> SAIC
> 221 Third St
> Newport, RI 02840
> 401-847-4210 (voice)
> 401-849-1585 (fax)
> roger@mtg.saic.com
>
>
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
>
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/