MySQL Forums
Forum List  »  Source, Builds, Binaries

Compiling error involving SOCKET in mysql_com.h
Posted by: Nicholas Metcalf
Date: March 08, 2006 08:43PM

Database Server.cpp
d:\tactics multiplayer\mysql-4.0.26\include\mysql_com.h(116) : error C2146: syntax error : missing ';' before identifier 'fd'
d:\tactics multiplayer\mysql-4.0.26\include\mysql_com.h(116) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\tactics multiplayer\mysql-4.0.26\include\mysql_com.h(116) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\tactics multiplayer\mysql-4.0.26\include\mysql_com.h(180) : error C2065: 'SOCKET' : undeclared identifier
d:\tactics multiplayer\mysql-4.0.26\include\mysql_com.h(180) : error C2146: syntax error : missing ')' before identifier 's'
d:\tactics multiplayer\mysql-4.0.26\include\mysql_com.h(181) : error C2059: syntax error : ')'

I get those errors when trying to compile. Since it is finding the headers I know it isn't due to that. I'm not sure where SOCKET is supose to be declared in the MySQL source as I'm not extremely well versed in the actual code of the MySQL headers. However, does anyone know what would cause these errors or know of a work around? I'm using Visual Studio .NET 2005.

Options: ReplyQuote


Subject
Views
Written By
Posted
Compiling error involving SOCKET in mysql_com.h
5147
March 08, 2006 08:43PM


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.