我把libmySQL.lib包近来了,程序如下:#include "stdio.h"
#include "e:\mysql\include\mysql.h"#define hostname NULL
#define username NULL
#define password NULL
#define database NULLMYSQL *conn;void main(int argc,char * argv[])
{
    conn=mysql_init(NULL);
mysql_real_connect(
conn,
hostname,
username,
password,
database,
0,
NULL,
0
);
mysql_close(conn);

  exit(0);
}
报错为
-------------------Configuration: linkms - Win32 Debug--------------------
Compiling...
linkms.cpp
e:\mysql\include\mysql_com.h(115) : error C2146: syntax error : missing ';' before identifier 'fd'
e:\mysql\include\mysql_com.h(115) : error C2501: 'SOCKET' : missing storage-class or type specifiers
e:\mysql\include\mysql_com.h(115) : error C2501: 'fd' : missing storage-class or type specifiersError executing cl.exe.linkms.exe -3 error(s), 0 warning(
怎么回事情呀