当我试图连接到MySQL时,visual studio抱怨缺少半冒号:
c:\program files\mysql\mysql server 5.6\include\mysql_com.h(320):
error C2146: syntax error : missing ';' before identifier 'fd'
c:\program files\mysql\mysql server 5.6\include\mysql_com.h(320):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
然后我检查确切的行,并写了:
my_socket fd; /* For Perl DBI/dbd */
my_socket
在mysql_com.h
文件中标记为红色。这是一个错误还是什么?