When I include mysql.h in my source file, I get all sorts of syntax errors. I'm using the cygwin gcc compiler and MysQL Windows Connector 6.0.2. I added an image of my IDE. What can I do to fix this? Click here for larger image
You need to include winsock
right before mysql.