FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour corrupt library
Posts: 83
Joined: Mon Oct 17, 2005 10:33 AM
corrupt library
Posted: Wed Aug 13, 2014 08:27 AM

Just tried to update an existing application to FWH 14.3 with xHB (January 2014)
Now I'm getting this:
xLINK: fatal error: Corrupt library: 'C:\fwh\lib\libmysql.lib'.

What can be done?
thanks for help!
Dietmar

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: corrupt library
Posted: Wed Aug 13, 2014 10:24 AM

Dietmar,

Surely you are not using a MSVC 98 (this is compatible with xhb.com) library.

You may need to create the import library from its DLL using VC98 implib.exe

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 83
Joined: Mon Oct 17, 2005 10:33 AM
Re: corrupt library
Posted: Wed Aug 13, 2014 11:23 AM

Surely you are not using a MSVC 98 (this is compatible with xhb.com) library.

  • I just installed FWH 14.3 and the libs that came with this build. Changed nothing (just tried again).

You may need to create the import library from its DLL using VC98 implib.exe

  • Does this mean FHW is not compatible with xhb any more? Not really, i hope :)
    Can you please send me a compatible libmysql.lib.
    Thanks,
    Dietmar
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: corrupt library
Posted: Thu Aug 14, 2014 03:22 PM
Dietmar,

You can easily build it yourself:

1. Download libmysql.dll from here:
http://www.sitasoft.net/dolphin/files/libmysql_dll.zip

2. Use Microsoft VC98 implib32.exe to create mysqldll.lib from it

3. xHb.com uses PellesC which it is only compatible with Microsoft VC 98. If you have PellesC, please check if it provides an implib.exe tool

4. FWH remains fully compatible with xHB.com. Surely you are using a wrong libmysql.lib

5. Please seriously consider to migrate to Harbour and stop depending from a very old Microsoft C compiler version (cause xHb.com) :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: corrupt library
Posted: Thu Aug 14, 2014 03:26 PM
Dietmar,

This one should work fine, I just created it for you :-)

https://bitbucket.org/fivetech/fivewin-contributions/downloads/libmysql_for_xhb.com.zip
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion