Guest_imported
New member
- Jan 1, 1970
- 0
I tried to compile a sample program to connect to mysql. Bu t I am getting compile time error messages like this.
c:\mysql\include\mysql_com.h(115) : error C2061: syntax error : identifier 'SOCKET'
c:\mysql\include\mysql_com.h(160) : error C2371: 'Vio' : redefinition; different basic types
c:\mysql\include\mysql_com.h(109) : see declaration of 'Vio'
c:\mysql\include\mysql_com.h(160) : error C2143: syntax error : missing ';' before '*'
c:\mysql\include\mysql_com.h(160) : error C2059: syntax error : ')'
c:\mysql\include\mysql.h(141) : error C2061: syntax error : identifier 'NET'
c:\mysql\include\mysql.h(163) : error C2059: syntax error : '}'
c:\mysql\include\mysql.h(176) : error C2061: syntax error : identifier 'MYSQL'
c:\mysql\include\mysql.h(229) : fatal error C1003: error count exceeds 100; stopping compilation
Error executing cl.exe.
mysql_connect.exe - 102 error(s), 0 warning(s)
Do i need to include any other file also.
Kindly help me
Regards
Rafeeq C E
c:\mysql\include\mysql_com.h(115) : error C2061: syntax error : identifier 'SOCKET'
c:\mysql\include\mysql_com.h(160) : error C2371: 'Vio' : redefinition; different basic types
c:\mysql\include\mysql_com.h(109) : see declaration of 'Vio'
c:\mysql\include\mysql_com.h(160) : error C2143: syntax error : missing ';' before '*'
c:\mysql\include\mysql_com.h(160) : error C2059: syntax error : ')'
c:\mysql\include\mysql.h(141) : error C2061: syntax error : identifier 'NET'
c:\mysql\include\mysql.h(163) : error C2059: syntax error : '}'
c:\mysql\include\mysql.h(176) : error C2061: syntax error : identifier 'MYSQL'
c:\mysql\include\mysql.h(229) : fatal error C1003: error count exceeds 100; stopping compilation
Error executing cl.exe.
mysql_connect.exe - 102 error(s), 0 warning(s)
Do i need to include any other file also.
Kindly help me
Regards
Rafeeq C E