gcc mysqltest.c -o mysqltest `mysql_config –cflags –libs` 转载于:https://www.cnblogs.com/liutianchen/p/7615390.html