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
Harbour env. linking error
Harbour env. linking error
Rimantas U.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Harbour env. linking error
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 ...Antonio Linares wrote:Rimantas,
Link this library too:
http://www.sitasoft.net/dolphin/files/libmysql_lib.zip
Rimantas U.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Harbour env. linking error
Rimantas,
You can also download the mingw version from Sitasoft's site
You can also download the mingw version from Sitasoft's site
Re: Harbour env. linking error
Google my friend ... but not helped with keywords "mingw sitasoft" ... . Where it can be found ?Antonio Linares wrote:Rimantas,
You can also download the mingw version from Sitasoft's site
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.
Re: Harbour env. linking error
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 ...
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.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Harbour env. linking error
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
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
Re: Harbour env. linking error
Many thanks !
Sorry Antonio , with your file - "Unrecognized file format" or something similar ...
With best regards ! Rimantas
Rimantas U.