mingw __dllexport__

delta trinity deltatrinity@hotmail.com
Wed, 13 Nov 2002 20:03:58 -0500


In Borland, just typing

extern const char * gmp_version;

work.

Although, the version you typed also work.

I don't know which one is prefferable or if there's side effect or 
limitations to the first or second form.

The external constant have to be defined in another module.  For DLL, I 
assume it have to be defined in the export table of the dll.


>From: Kevin Ryde <user42@zip.com.au>
>To: gmp-discuss@swox.com
>Subject: Re: mingw __dllexport__
>Date: Thu, 14 Nov 2002 08:02:23 +1000
>
>"delta trinity" <deltatrinity@hotmail.com> writes:
> >
> > Maybe a conditional could let it like it already is, for Borland.
>
>Yep.
>
> > Note, Borland also support "__export".
>
>Should move to that at some stage I guess.
>
> > __export void f(void);                      // illegal
> > void __export f(void)                       // correct
>
>Have to change the way __GMP_DECLSPEC is arranged.
>
>Does a global pointer variable look like
>
>	extern const char * __export gmp_version;
>?
>
>
>_______________________________________________
>gmp-discuss mailing list
>gmp-discuss@swox.com
>https://gmplib.org/mailman/listinfo/gmp-discuss


_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus