FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Harbour env. linking error
Posts: 437
Joined: Fri Oct 07, 2005 12:56 PM
Harbour env. linking error
Posted: Sun Feb 24, 2013 02:44 PM

Hi,

Trying to compile one project with TMySql ... I'm getting errors :
hbmk2: Linking... engel.exe
D:/a/hrb/lib/win/mingw/libhbmysql.a(mysql.o):mysql.c:(.text+0x16): undefined reference to mysql_close@4' D:/a/hrb/lib/win/mingw/libhbmysql.a(mysql.o):mysql.c:(.text+0x46): undefined reference tomysql_free_result@4'
D:/a/hrb/lib/win/mingw/libhbmysql.a(mysql.o):mysql.c:(.text+0x109c): undefined reference to mysql_real_escape_string@16' ... D:/a/hrb/lib/win/mingw/libhbmysql.a(mysql.o):mysql.c:(.text+0x1145): undefined reference tomysql_escape_string@12'
D:/a/hrb/lib/win/mingw/libhbmysql.a(mysql.o):mysql.c:(.text+0x121d): undefined reference to `mysql_escape_string@12'

What I must to add to project ?

With best regards and many thanks in advance ! Rimantas

FWH 11.12 , Harbour 3.0 , MinGw

Rimantas U.
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Harbour env. linking error
Posted: Sun Feb 24, 2013 08:53 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 437
Joined: Fri Oct 07, 2005 12:56 PM
Re: Harbour env. linking error
Posted: Mon Feb 25, 2013 04:29 PM
Antonio Linares wrote:Rimantas,
Link this library too:
http://www.sitasoft.net/dolphin/files/libmysql_lib.zip


Many thanks Antonio . Another question ( stupid ... :-) ) - I don't know how to direct this lib for mingw binaries . Now I'm seeing in \hrb\lib\win\mingw libs as "lib*.a" files . Here it's .lib file . So I'll be thankfull for that help ... :-)
Rimantas U.
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Harbour env. linking error
Posted: Mon Feb 25, 2013 05:58 PM

Rimantas,

You can also download the mingw version from Sitasoft's site :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 437
Joined: Fri Oct 07, 2005 12:56 PM
Re: Harbour env. linking error
Posted: Mon Feb 25, 2013 06:40 PM
Antonio Linares wrote:Rimantas,

You can also download the mingw version from Sitasoft's site :-)


Google my friend ... but not helped with keywords "mingw sitasoft" ... :-) . Where it can be found ?

Also I found that : http://forums.mysql.com/read.php?167,295483,297733 .
But the "2." step unsucesfull . libmysql.a 0 byte sized ...
Rimantas U.
Posts: 437
Joined: Fri Oct 07, 2005 12:56 PM
Re: Harbour env. linking error
Posted: Wed Feb 27, 2013 06:48 AM

Hi,

I'm asking to help to me build libmysql ( .a or .lib ) library for Harbour 3.0 MinGw . I found that : http://forums.mysql.com/read.php?167,295483,297733 .

  1. pexports libmysql.dll > libmysql.def

Exported def . Success

  1. dlltool -k --input-def libmysql.def --dllname libmysql.dll --output-lib libmysql.a

Not success ... libmysql 0 length ... :(

Please help ...

Rimantas U.
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Harbour env. linking error
Posted: Wed Feb 27, 2013 07:46 AM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 302
Joined: Fri Apr 23, 2010 04:30 AM
Re: Harbour env. linking error
Posted: Wed Feb 27, 2013 03:58 PM
Nicanor Martinez M.
Auditoria y Sistemas Ltda.
MicroExpress Ltda.
FW + FWH + XHARBOUR + HARBOUR + PELLES C + XDEVSTUDIO + XEDIT + BCC + VC_X86 + VCC_X64 + MINGW + R&R Reports + FastReport + Tdolphin + ADO + MYSQL + MARIADB + ORACLE
nnicanor@yahoo.com
Posts: 437
Joined: Fri Oct 07, 2005 12:56 PM
Re: Harbour env. linking error
Posted: Wed Feb 27, 2013 05:35 PM
nnicanor wrote:Rimantas,


http://190.90.160.205/pruebas/libmysql_mingw.zip

Regards,


Many thanks ! :-)

Sorry Antonio , with your file - "Unrecognized file format" or something similar ... :-)

With best regards ! Rimantas
Rimantas U.

Continue the discussion