rjnorman -> How do you build a DLL with gcc? 2003 R3 SUA (Feb. 23, '06, 4:07:56 PM) |
I want to have a mainline module (this could be either Win32 or SUA) which loads a dll containing C functions that use the POSIX (aka SUA) API, but expose functions for later use. Then I want to load a Win32 DLL which will have calls to the functions in the POSIX (SUA) dll.
The small 'Help_and_ReleaseNotes" document talks about using link.exe to creat a .def file, but link.exe has no such function that I coud find. Also, even if I manually create a .def file, then what do a I do with it? gcc & ld do not seem to know anything about .def. I also tried using link.exe but then it has problems finding the POSIX function even when I also included libc.a for link.exe. I did not try libc.so with link.exe but I do not think link.exe would know what a .so is...
Can anyone give me more details specific examples for creating a dll using gcc (or cc or c89) and using a .def to define the entry points to the dll?
Thanks
Ron Norman |
|
|
|