Description:
error when compile with mysql support
--------------------Configuration: gk - Win32
Debug--------------------
Compiling... mysqlcon.cxx 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 : ')' Error executing cl.exe. gnugk.exe - 6 error(s), 0 warning(s)
Fix:
----------------------------------
mysqlconn.cxx
//*{* Added by huyuxin 2003-7-22 17:05:59
#ifdef _WIN32 #include <ptlib.h> #include <ptlib/socket.h> #pragma comment(lib, "libmySQL.lib") #endif // _WIN32 //*}* Added |