 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Anthony Guest
|
Posted: Sun Mar 25, 2007 5:15 pm Post subject: MySQL: v5 Connection Issue |
|
|
First time connecting to MySQL.
I cannot seem to get it to work for me, I complete the following steps:
(1) Copy the headerfiles from the mySQLServer\include to the project/working
dir.
(2) Copy libmysql.dll to the project directory.
(3) Use implib (implib libmysql.lib libmysql.dll)
(4) add libmysql.lib to the project.
(5) add the line #include "mysql.h"
thats it just for starters and i get the following errors:
[c++ Error] mysql_com.h(183): E203 Type name expected
[c++ Error] mysql_com.h(183): E2139 Declaration missing ;
[c++ Error] mysql_com.h(347): E2147 'SOCKET' cannot start a parameter
declaration |
|
| Back to top |
|
 |
Anthony Guest
|
Posted: Wed Mar 28, 2007 4:07 am Post subject: Re: MySQL: v5 Connection Issue - FIXED |
|
|
all sorted now just needed to add the line:
#include <SOCKET.h> |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|