Trying to make a program with MySql Library
Trying to make a program with MySql Library
I use Dev-c++ with the package libmysql installed.
I tried to do the most simple code to compile it:
#include <stdio.h>
#include <mysql/mysql.h>
int main()
{
return 0;
}
With that code it throw me thoose errors:
In file included from J:/Dev-Cpp/include/mysql/mysql.h:57,
from J:\Documents and Settings\Guido\Mis documentos\prueba_mysql_1.cpp:2:
J:/Dev-Cpp/include/mysql/mysql_com.h:175: error: `SOCKET' does not name a type
J:/Dev-Cpp/include/mysql/mysql_com.h:339: error: `SOCKET' was not declared in this scope
J:/Dev-Cpp/include/mysql/mysql_com.h:339: error: expected primary-expression before "const"
J:/Dev-Cpp/include/mysql/mysql_com.h:339: error: expected primary-expression before "unsigned"
J:/Dev-Cpp/include/mysql/mysql_com.h:340: error: expected primary-expression before "unsigned"
J:/Dev-Cpp/include/mysql/mysql_com.h:340: error: initializer expression list treated as compound expression
Login