Re: OK to stop using .def files for Windows builds with gcc?

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).


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]