Re: OK to stop using .def files for Windows builds with gcc?
- From: Tor Lillqvist <tml iki fi>
- To: gtk-devel-list gnome org, gimp-developer lists xcf berkeley edu
- Subject: Re: OK to stop using .def files for Windows builds with gcc?
- Date: Tue, 14 Oct 2003 22:49:56 +0000
Tor Lillqvist writes:
> No. But the alternative is to decorate every function and variable to
> be exported with __declspec(dllexport).
To be more precise, preprocessor macros would have to be used in such
a way that when compiling the library in question, the compiler sees
__declspec(dllexport), but when compiling software that uses the
library, it sees __declspec(dllimport) (or just 'extern', declaring
imported functions isn't really necessary).
] [Thread Prev