Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiler errors in MySQL.h ???

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hy everybody,

I tried to use the MySQL API in an VC++ 6.0 MFC Project for learning how to use it.
But always, when I try to compile this project, the compiler returns 7 warnings and 4 errors found in mysql.h !!
I don't think the errors are real, I think I made a mistake in the project options ore somewhere else.

Can anybody help me or give me a hint ?
Thanks,
SAM
 
There's a couple of project settings you need to change to get the api to compile; they're listed in the readme files. Have you set these yet? The most important, if I remember correctly, is making sure that code generation under the c++ tab of project settings is set to multithreaded dll.
Also, I've found that compile errors occur when you try to the vector class from the standard library with the api. I'm not sure how to fix this one, but if you figure it out let me know.

-Venkman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top