|
Use vc to connect to mysql via c API ..
both include and lib were introduced,\MySQL Server 5.0\include
\..\MySQL Server 5.0\lib\debug
#include <mysql.h>
Compile error:
Compiling ...
StdAfx.cpp
c:\program files\mysql\mysql server 5.0\include\mysql_com.h (183): error C2146: syntax error: missing ';' before identifier 'fd'
c:\program files\mysql\mysql server 5.0\include\mysql_com.h (183): error C2501: 'SOCKET': missing storage-class or type specifiers
c:\program files\mysql\mysql server 5.0\include\mysql_com.h (183): error C2501: 'fd': missing storage-class or type specifiers
c:\program files\mysql\mysql server 5.0\include\mysql_com.h (347): error C2065: 'SOCKET': undeclared identifier
c:\program files\mysql\mysql server 5.0\include\mysql_com.h (347): error C2146: syntax error: missing ')' before identifier 's'
c:\program files\mysql\mysql server 5.0\include\mysql_com.h (348): error C2059: syntax error: ')'
Error executing cl.exe.
tt.exe-6 error (s), 0 warning (s)
Help, what is the problem and how to deal with it ...
Thank you.. |
|