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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Vis Studio 6 - Cannot install MySQL

Status
Not open for further replies.

Kalisto

Programmer
Feb 18, 2003
997
GB
I have MySQl running on a PC, and also Visual Studio 6
Both Work fine

I have tried to access MySQL, but as soon as I add the line #include <mysql.h> my program wont compile

All I get is a list of errors - 6 in all. I wont detail them in full, but the codes are C2501. C2065, C2146, C2059

All of these imply a Typo error. If there is one it is in the MySQL headers, so I doubt it.

Looking through, it seems that all the errors are around the inclusion of a MySQL class that uses a socket. I Have Winsock.h present on my machine, and it is being called by the MySQL headers.

So what am I doing wrong?
 
OK, Fixed this. It appears that the __LCC__ inclusion guard is wrong. What is __LCC__ ?

Changing it to __WIN__ works.
 
Thanks again ;-) you must spend all your life in here :-D
 
What life?

/Per

&quot;It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top