用#include <mysql.h>试试 列子 #include <mysql.h> #include <stdlib.h>int main(void) { if (mysql_library_init(0, NULL, NULL)) { fprintf(stderr, "could not initialize MySQL library\n"); exit(1); } /* Use any MySQL API functions here */ mysql_library_end(); return EXIT_SUCCESS; }
试过了 还是不行 还是提示error C3861: 'mysql_library_end': identifier not found mysql.h文件中并没有mysql_library_end函数呀?
列子 #include <mysql.h>
#include <stdlib.h>int main(void) {
if (mysql_library_init(0, NULL, NULL)) {
fprintf(stderr, "could not initialize MySQL library\n");
exit(1);
} /* Use any MySQL API functions here */ mysql_library_end(); return EXIT_SUCCESS;
}
试过了 还是不行 还是提示error C3861: 'mysql_library_end': identifier not found mysql.h文件中并没有mysql_library_end函数呀?