2008-05-08

MinGW dll linkage

http://www.drdobbs.com/database/184416611
pexports is provided in the MinGW Utilities package, mingw-utils. If your dll has functions that use the Pascal calling convention, you'll need to use the -o option.

hello.dll is our dll where we want to make a ".a" for.

pexports -o hello.dll > hello2.def
dlltool --def hello2.def --dllname hello.dll --output-lib libhello2.a

No comments: