VC++ 6.0 and mysql.h: compiler-error
Posted by: Karlheinz Druschel
Date: September 30, 2005 09:43AM

Hi Folks,

i´m an new beginner to VC++ and MySql.
I want to use the C-API so i included then file mysql.h and i added the mysql.lib to my project.
every time when i try to compile my project, i get ann error:

c:\programme\mysql\mysql server 4.1\include\mysql_com.h(157) : error C2146: Syntaxfehler : Fehlendes ';' vor Bezeichner 'fd'
c:\programme\mysql\mysql server 4.1\include\mysql_com.h(157) : error C2501: 'SOCKET' : Fehlende Speicherklasse oder Typbezeichner

I believe, the compiler doesn´t know whats "SOCKET" is. But if ound the line "#define int SOCKET" i a header file.

Whats wrong with my project ? Any Idea ?


Best regards and sorry for my bad english :-)
Karlheinz

Options: ReplyQuote


Subject
Views
Written By
Posted
VC++ 6.0 and mysql.h: compiler-error
893
September 30, 2005 09:43AM
555
October 01, 2005 03:06PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.