Hi Pritpal
I post here my incomplete info
dlltool can do the equivalent of IMPLIB., but is limited and buggly.
same situation like ads is sufficent copy .a in lib
the above method does not work with __stdcall functions. For MSVC will
prefix an underscore to __stdcall functions while MinGW will not. The
right way is to produce the DEF file using the pexports tool
(downloadable here if not found elsewhere) and filter off the first
underscore by sed:
pexports testdll.dll | sed "s/^_//" > testdll.def
Then, when using dlltool to produce the import library, add `-U' to
the command line:
dlltool -U -d testdll.def -l libtestdll.a


2009/11/5 Pritpal Bedi <[email protected]>:
>
> Hello
>
> Can someone enlighten me how can I extract a
> static linkable lib from a .dll with MINGW?
>
> This should be equivalent to "implib" utility of BCC.
>
> Regards
> Pritpal Bedi
> --
> View this message in context: 
> http://old.nabble.com/MINGW---Dll-to-Lib---Command-Syntax-tp26221154p26221154.html
> Sent from the Harbour - Dev mailing list archive at Nabble.com.
>
> _______________________________________________
> Harbour mailing list
> [email protected]
> http://lists.harbour-project.org/mailman/listinfo/harbour
>



--
Massimo Belgrano
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to