| |

VerySource

 Forgot password?
 Register
Search
View: 33|Reply: 0

About the problem of using C API connection between mysql and vc

[Copy link]

1

Threads

1

Posts

2

Credits

Newbie

Rank: 1

Credits
2

 China

Post time: 2020-2-2 08:20:01
| Show all posts |Read mode
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..
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2020|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list