BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MySQL: v5 Connection Issue

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Anthony
Guest





PostPosted: Sun Mar 25, 2007 5:15 pm    Post subject: MySQL: v5 Connection Issue Reply with quote



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





PostPosted: Wed Mar 28, 2007 4:07 am    Post subject: Re: MySQL: v5 Connection Issue - FIXED Reply with quote



all sorted now just needed to add the line:

#include <SOCKET.h>
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.