Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

core generated when invoke mysql_init

nishengzheng
Occasional Visitor

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