MariaDB社区
标题: linux下C编译mysql出错 求大神啊 [打印本页]
作者: zhanglu5227 时间: 2012-8-6 18:32
标题: linux下C编译mysql出错 求大神啊
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
作者: zhanglu5227 时间: 2012-8-7 16:11
唉 没人帮忙
作者: zhanglu5227 时间: 2012-8-8 10:26
求回贴啊
作者: gava_java 时间: 2012-8-17 21:38
为啥不用.configure?
欢迎光临 MariaDB社区 (http://123.56.88.72/) |
Powered by Discuz! X3.2 |