find / -name mysql.h /usr/include/mysql/mysql.h 头文件 find / -name libmysqlclient.so /usr/lib/mysql/libmysqlclient.so /usr/lib/libmysqlclient.so 链接库 运行命令gcc -o insert insert.c -lmysqlclient -L/usr/lib/mysql -I/usr/include/mysql 出错|: /usr/bin/ld: skipping incompatible /usr/lib/libmysqlclient.so when searching for -lmysqlclient /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status 或者运行命令 gcc -o insert insert.c -lmysqlclient -L/usr/lib -I/usr/include/mysql 出错: /usr/bin/ld: skipping incompatible /usr/lib/libmysqlclient.so when searching for -lmysqlclient /usr/bin/ld: skipping incompatible /usr/lib/libmysqlclient.so when searching for -lmysqlclient /usr/bin/ld: cannot find -lmysqlclient |