1.#include <mysql.h>编译出错
在阅读TrinityCore时,发现了解决方法和解释:
#ifdef _WIN32 // hack for broken mysql.h not including the correct winsock header for SOCKET definition, fixed in 5.7 #include <winsock2.h> #endif #include <mysql.h>