There is also bin/hb-mkimp.bat inside the Harbour source tree which solves the problem for most C compilers supported by Harbour. Should be quite easy to adapt the logic for any .dll file.
Maybe in the future this process will be built inside hbmk2, I'll have to think about it. For sure on some compilers it's opening a can of worms (= f.e. bcc's implib seems to be buggy). Brgds, Viktor On 2009.08.12., at 2:33, Rossine wrote:
Hello Itamar, This is my batch to convert DLL to Lib using MSVC. Try this: [BATCH] @if exist %1.lib del %1.lib > nul @if exist *.exp del *.exp > nul @if exist *.def del *.def > nul if "%1" == "" goto help if not exist %1.dll goto notfound rem pexports.exe %1 > _temp_.def impdef.exe %2 %1.def %1.dll if errorlevel 1 goto errodef lib /def:%1.def if errorlevel 1 echo Error creating .LIB... goto fim :help echo Usage: dll2lib input.dll [output.lib] goto fim :notfound echo ERROR: File not found "%1" goto fim :errodef echo Error extracting .DEF... goto fim :fim rem @if exist *.exp del *.exp > nul rem @if exist *.def del *.def > nul [ENDBATCH] Regards, Rossine. -- View this message in context: http://www.nabble.com/Change-BCC-to-MSVC-tp24910812p24928139.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
_______________________________________________ Harbour mailing list [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
