Harbour env. linking error

Harbour env. linking error

Postby Rimantas » Sun Feb 24, 2013 2: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 to `mysql_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 to `mysql_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.
User avatar
Rimantas
 
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania

Re: Harbour env. linking error

Postby Antonio Linares » Sun Feb 24, 2013 8:53 pm

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Harbour env. linking error

Postby Rimantas » Mon Feb 25, 2013 4: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.
User avatar
Rimantas
 
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania

Re: Harbour env. linking error

Postby Antonio Linares » Mon Feb 25, 2013 5:58 pm

Rimantas,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Harbour env. linking error

Postby Rimantas » Mon Feb 25, 2013 6: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.
User avatar
Rimantas
 
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania

Re: Harbour env. linking error

Postby Rimantas » Wed Feb 27, 2013 6: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

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

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

Please help ...
Rimantas U.
User avatar
Rimantas
 
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania

Re: Harbour env. linking error

Postby Antonio Linares » Wed Feb 27, 2013 7:46 am

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Harbour env. linking error

Postby nnicanor » Wed Feb 27, 2013 3: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
nnicanor
 
Posts: 302
Joined: Fri Apr 23, 2010 4:30 am
Location: Colombia

Re: Harbour env. linking error

Postby Rimantas » Wed Feb 27, 2013 5: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.
User avatar
Rimantas
 
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], SantaCroya and 109 guests