If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Getting some wierd error with MySQL++

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-02-03, 12:31
kallarek kallarek is offline
Registered User
 
Join Date: Apr 2003
Location: Sweden
Posts: 1
Getting some wierd error with MySQL++

Im very new to c++ and mysql. But i've done pretty much coding in java before... however i keep getting these wierd errors when im compiling in visual c++ 6.

c:\mysql\include\mysql_com.h(116) : error C2146: syntax error : missing ';' before identifier 'fd'
c:\mysql\include\mysql_com.h(116) : error C2501: 'SOCKET' : missing storage-class or type specifiers
c:\mysql\include\mysql_com.h(116) : error C2501: 'fd' : missing storage-class or type specifiers
c:\mysql\include\mysql_com.h(180) : error C2065: 'SOCKET' : undeclared identifier
c:\mysql\include\mysql_com.h(180) : error C2146: syntax error : missing ')' before identifier 's'
c:\mysql\include\mysql_com.h(181) : error C2059: syntax error : ')'

It says that the error is not in MY code but in the files i've included (???) this seems wierd to me since i found some tutorial that i tried at that code worked fine. These errors only occur when i tried coding the tutorial myself, and when im compiling the examples that come with mysql++... this seem strange dont you think??

Obviously, or rahter hopefully, there is something im doing wrong, question is... what??

all help will be much appreciated

thanx

/Eric
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On