Hi, I'm a newbie to MySQL
Now I am using C to connect mysql in Linux
The heaser souce code like:
#include <stdio.h>
#include <string.h>
#include <mysql.h>
and After I use "gcc test.c -L /usr/local/mysql/lib/ -shared " to compile it , and
when I run the a.out ,it always say that "Segmentation Fault "
and If I use "gcc test.c -L /usr/local/mysql/lib/ -static " to compile it ,It says
that "undefined reference to 'mysql_init' "
How should I do ?
Thanks!Best Regards Li Yang
