Ciao a tutti sono nuovo!
Dunque volevo scrivere un client in C per mysql usando per la compilazione Mingw/MSYS/gcc sotto Windows XP, ma sono ancora all'ABC, quindi ho iniziato tentando di compilare un client di test ma mi da i seguenti errori/warning :
codice:
gcc -c -I/d/mysql-5.0.51b/include main.c
In file included from d:/mysql-5.0.51b/include/my_global.h:73,
from main.c:1:
d:/mysql-5.0.51b/include/config-win.h:167:1: warning: "isnan" redefined
In file included from d:/mysql-5.0.51b/include/config-win.h:31,
from d:/mysql-5.0.51b/include/my_global.h:73,
from main.c:1:
d:\mingw\bin\../lib/gcc/mingw32/4.3.0/../../../../include/math.h:380:1: warning: this is the location of the previous definition
In file included from d:/mysql-5.0.51b/include/my_global.h:73,
from main.c:1:
d:/mysql-5.0.51b/include/config-win.h:214:1: warning: "finite" redefined
d:/mysql-5.0.51b/include/config-win.h:168:1: warning: this is the location of the previous definition
In file included from d:/mysql-5.0.51b/include/my_global.h:311,
from main.c:1:
d:\mingw\bin\../lib/gcc/mingw32/4.3.0/../../../../include/stdio.h:377: error: expected declaration specifiers or '...' before '(' token
d:\mingw\bin\../lib/gcc/mingw32/4.3.0/../../../../include/stdio.h:377: error: expected declaration specifiers or '...' before '(' token
In file included from main.c:1:
d:/mysql-5.0.51b/include/my_global.h:498:1: warning: "my_reinterpret_cast" redefined
In file included from d:/mysql-5.0.51b/include/my_global.h:73,
from main.c:1:
d:/mysql-5.0.51b/include/config-win.h:361:1: warning: this is the location of the previous definition
In file included from main.c:1:
d:/mysql-5.0.51b/include/my_global.h:1084:1: warning: "uint4korr" redefined
In file included from d:/mysql-5.0.51b/include/my_global.h:73,
from main.c:1:
d:/mysql-5.0.51b/include/config-win.h:278:1: warning: this is the location of the previous definition
In file included from main.c:1:
d:/mysql-5.0.51b/include/my_global.h:1093:1: warning: "int3store" redefined
In file included from d:/mysql-5.0.51b/include/my_global.h:73,
from main.c:1:
d:/mysql-5.0.51b/include/config-win.h:287:1: warning: this is the location of the previous definition
In file included from main.c:1:
d:/mysql-5.0.51b/include/my_global.h:1097:1: warning: "int5store" redefined
In file included from d:/mysql-5.0.51b/include/my_global.h:73,
from main.c:1:
d:/mysql-5.0.51b/include/config-win.h:291:1: warning: this is the location of the previous definition
In file included from main.c:1:
d:/mysql-5.0.51b/include/my_global.h:1108:1: warning: "doubleget" redefined
In file included from d:/mysql-5.0.51b/include/my_global.h:73,
from main.c:1:
d:/mysql-5.0.51b/include/config-win.h:298:1: warning: this is the location of the previous definition
In file included from main.c:1:
d:/mysql-5.0.51b/include/my_global.h:1113:1: warning: "doublestore" redefined
In file included from d:/mysql-5.0.51b/include/my_global.h:73,
from main.c:1:
d:/mysql-5.0.51b/include/config-win.h:300:1: warning: this is the location of the previous definition
In file included from main.c:1:
d:/mysql-5.0.51b/include/my_global.h:1116:1: warning: "float4get" redefined
In file included from d:/mysql-5.0.51b/include/my_global.h:73,
from main.c:1:
d:/mysql-5.0.51b/include/config-win.h:302:1: warning: this is the location of the previous definition
In file included from main.c:1:
d:/mysql-5.0.51b/include/my_global.h:1119:1: warning: "floatstore" redefined
In file included from d:/mysql-5.0.51b/include/my_global.h:73,
from main.c:1:
d:/mysql-5.0.51b/include/config-win.h:303:1: warning: this is the location of the previous definition
In file included from main.c:1:
d:/mysql-5.0.51b/include/my_global.h:1120:1: warning: "floatget" redefined
In file included from d:/mysql-5.0.51b/include/my_global.h:73,
from main.c:1:
d:/mysql-5.0.51b/include/config-win.h:304:1: warning: this is the location of the previous definition
In file included from main.c:3:
d:/mysql-5.0.51b/include/mysql.h:71:27: error: mysql_version.h: No such file or directory
Sicuramete non ho impostato bene l'ambiente, ho scaricato i sorgenti di Mysql ma non ho ben capito cosa farci !
Non è che avete qualche consiglio da darmi?