> try... > > #include <windows.h> > #include <mysql.h> > > int main(void) > { > MYSQL *database; > > database = mysql_init(database); > > return(0); > } > > > ----- Original Message ----- > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, April 26, 2004 8:25 AM > Subject: C Client compil error > > > Hello all, > > I try to compil a very simple client, but i get multiple error from my > compiler > Windows XP, DevC++, MySql installed : mysql --version => mysql Ver 14.3 > Distrib 4.1.1a-alpha, for Win95/Win98 (i32) > > The prgram : > > #include <mysql.h> > > int main(void) > { > MYSQL *database; > > database = mysql_init(database); > > return(0); > } > > > The error from the compiler : > > Compilateur: Default compiler > Exécution de gcc.exe... > gcc.exe "D:\al\Working_code\connection.c" -o > "D:\al\Working_code\connection.exe" -Wall -pedantic -g3 > -I"C:\Dev-Cpp\include" -I"d:\al" -I"D:\MySql" -L"C:\Dev-Cpp\lib" > -L"d:\MySql" > In file included from C:/Dev-Cpp/include/sys/types.h:38, > from D:/MySql/mysql.h:33, > from D:/al/Working_code/connection.c:1: > C:/Dev-Cpp/include/stddef.h:6:2: warning: #include_next is a GCC extension > In file included from D:/MySql/mysql.h:57, > from D:/al/Working_code/connection.c:1: > D:/MySql/mysql_com.h:145: parse error before "SOCKET" > D:/MySql/mysql_com.h:145: warning: no semicolon at end of struct or union > D:/MySql/mysql_com.h:172: parse error before '}' token > D:/MySql/mysql_com.h:172: warning: type defaults to `int' in declaration of > `NET' > D:/MySql/mysql_com.h:172: ISO C forbids data definition with no type or > storage class > D:/MySql/mysql_com.h:249: parse error before '*' token > > D:/MySql/mysql_com.h:250: parse error before '*' token > D:/MySql/mysql_com.h:251: parse error before '*' token > ... > In file included from D:/al/Working_code/connection.c:1: > D:/MySql/mysql.h:113: warning: ISO C89 does not support `long long' > > In file included from D:/al/Working_code/connection.c:1: > D:/MySql/mysql.h:215: parse error before "NET" > D:/MySql/mysql.h:215: warning: no semicolon at end of struct or union > ... > > And so on. > > > Could anybody point me where i can search/solve the problem? > > Thank's a lot > -- > Vincent > > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED] > >
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]