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?
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?