> > From: [EMAIL PROTECTED] > Date: 2003/06/03 Tue AM 11:45:31 CDT > To: [EMAIL PROTECTED] > Subject: C API > > Hello, > > I'm trying to code a small C client, under windows, with bloddshed Dev-C++, > and i always get an error. > /* Code */ > > #include <conio.h> > #include <stdarg.h> > #include "winsock.h" > #include <stdio.h> > #include <stdlib.h> > #include <string.h> > #include <mysql.h>
My experience is that one should always include these files: #include <my_global.h> #include <my_sys.h> #include <mysql.h> This is just a stab in the dark, though. -S > > int main(void) { > MYSQL* toto; > > toto = mysql_init(toto); > } > > > /* this is the compler log */ > > Compiler: Default compiler > Executing gcc.exe... > gcc.exe "U:\mep\Dev\abr.c" -o "U:\mep\Dev\abr.exe" > -I"C:\Dev-Cpp\include" -I"C:\mysql\include" -L"C:\Dev-Cpp\lib" > C:\DOCUME~1\badier1\LOCALS~1\Temp/ccW8aaaa.o(.text+0x1d2):abr.c: undefined > reference to [EMAIL PROTECTED]' > > Execution terminated > > > I really don't know where this can come from. I downloaded the latest > production mysql server (to get the client and libraries), but nothing i > tried correct the problem. > Any idea? > > Thanks > 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]