Harbour env. linking error

Post Reply
User avatar
Rimantas
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania

Harbour env. linking error

Post by Rimantas »

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
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Harbour env. linking error

Post by Antonio Linares »

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Rimantas
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania

Re: Harbour env. linking error

Post by Rimantas »

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
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Harbour env. linking error

Post by Antonio Linares »

Rimantas,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Rimantas
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania

Re: Harbour env. linking error

Post by Rimantas »

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

Post by Rimantas »

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
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Harbour env. linking error

Post by Antonio Linares »

regards, saludos

Antonio Linares
www.fivetechsoft.com
nnicanor
Posts: 296
Joined: Fri Apr 23, 2010 4:30 am
Location: Colombia

Re: Harbour env. linking error

Post by nnicanor »

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
User avatar
Rimantas
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania

Re: Harbour env. linking error

Post by Rimantas »

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.
Post Reply