Search code examples
mysqlcgcccygwindev-c++

Error in mysql.h


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

enter image description here


Solution

  • You need to include winsock right before mysql.