Hi,
I am trying to compile dbf2mysql.prg from the contrib\mysql\tests\dbf2mysql.prg.
It gives the error message bellow:
Error: Unresolved external '_HB_FUN_TMYSQLSERVER' referenced from C:\USERS\RHFSY\XHARBOUR_SRC\CORE-MASTER\CONTRIB\MYSQL\TESTS\OBJ\DBF2MYSQL.OBJ
What is wrong?
What is wrong?I could not build all the contrib source code, sorry. However, the
source code of TMySQLServer is in contrib\mysql\tmysql.prg.
Embarcadero C++ 7.40 for Win32 Copyright (c) 1993-2018 Embarcadero Technologies, Inc.
Warning W8123: Path '\lib' not found - path ignored in option '-L'
mysql.c:
Error E2193 mysql.c 183: Too few parameters in call to 'mysql_real_connect' in function HB_FUN_MYSQL_REAL_CONNECT
*** 1 errors in Compile ***
Hi Enrico,
Thank you for your answear!
What is wrong?I could not build all the contrib source code, sorry. However, the
source code of TMySQLServer is in contrib\mysql\tmysql.prg.
I tried to rebuild all the lib, but it gives a lot of error message!
So, I don't know what to do.
Check your MYSQL_VERSION_ID. And look at this difference:All errors have been resolved.
mysql_real_connect( mysql, szHost, szUser, szPass, 0, port, NULL, flags ) )
mysql_real_connect( NULL, szHost, szUser, szPass, 0, NULL, 0 ) );
The second does not have the port parameter. Try with
mysql_real_connect( NULL, szHost, szUser, szPass, 0, 0, NULL, 0 ) );
--
All errors have been resolved.
The lib MYSQL.LIB was built successfully!
Now I can test it.
All errors have been resolved.Great! Please keep us updated.
The lib MYSQL.LIB was built successfully!
Now I can test it.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 339 |
Nodes: | 16 (0 / 16) |
Uptime: | 18:04:35 |
Calls: | 7,467 |
Calls today: | 3 |
Files: | 12,694 |
Messages: | 5,627,426 |