undefined reference to mysql close_mysql编译提示undefined reference to `mysql_init\'-VankeH-ChinaUnix博客..
在ubuntu系统安装了mysql后,通过调用mysqlAPI,进行数据读写。char*query_str;intrc,i,fields;introws;if(NULL==mysql_init(&stMysql)){fprintf(stderr,"mysqliniterror:%s\n",mysql_error(&stMysql));returnMY_SQL_ERROR;}if(mysql_rea