Mail Archives: cygwin-developers/1998/03/13/15:53:14
I've have a first-cut implementation of two new attributes in Win32 gcc
-- dllimport and dllexport. Borrows heavily from PE/ARM work by Doug
Evans, but unfortunately it's sort of half done and Doug is no longer
working on it.
The predefined macro __declspec(x) map to __attribute__((x)), so it
can grok __declspec(dllimport) etc that Win32 headers like so much.
The "dllexport" basically outputs some extra stuff in the .drectve
section, but that's probably not really useful until GNU ld folds
in dlltool.
Extremely untested, especially on anything longer 10 lines of code. If
you want to play with and test it, please let me know.
If you have egcs-1.0.2 or some approximation of it, it should patch in
cleanly. The changes are confined to i386/cygwin32.h and i386/winnt.c,
so is it's also reasonable to just patch in manually.
Regards,
Mumit
- Raw text -