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);
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'