newbie : Help with C api for mysql

2002-03-18 Thread jim and lois flaherty
I have a Redhat 7.1 box, I want it to connect to its own mysql db . Here is my code #include stdio.h; #include mysql.h; int main(char **args){ MYSQL_RES *result; MYSQL_ROW row; MYSQL *connection, mysql; int state; /* connect to the mysql db */ mysql_init(mysql);

Re: newbie : Help with C api for mysql

2002-03-18 Thread Sammy Lau
jim and lois flaherty wrote: gcc analysis.c analysis.c:6:19: warning: extra tokens at end of #include directive analysis.c:7:19: warning: extra tokens at end of #include directive /tmp/ccsKk2GG.o: In function `main': /tmp/ccsKk2GG.o(.text+0x14): undefined reference to `mysql_init'