|
用vc通过c API 连接mysql..
include和lib都引入了,..\MySQL Server 5.0\include
\..\MySQL Server 5.0\lib\debug
#include <mysql.h>
编译出错..
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)
求助,,问题何在,怎么处理..
谢谢.. |
|