Operating System - Linux
1753928 Members
9001 Online
108810 Solutions
New Discussion

core generated when invoke mysql_init

 
nishengzheng
New Member

core generated when invoke mysql_init

test.c is a mysql client for hpux11.11, and only invoke mysql api "mysql_init()";
when i combine it in this way, core will generated when execute.
gcc -o ./test test.c -I/usr/local/mysql/include -L /usr/local/mysql/lib -lmysqlclient -lpthread -lxti -lz -lm -lc -static
( if i remove the option -lpthread -static, it will work). so i think the problem is combine option.
How can I avoid this problem?

Thanks
Nishengzheng