Linux 链接MySQL出错 undefined reference to `mysql_init'
今天用Linux编译socket的通信程序,出现以下错误,折腾了整整一天,重要解决!!!
/tmp/ccebULYF.o: In function `main':
tcp_demo.cpp:(.text+0x494): undefined reference to `mysql_init'
tcp_demo.cpp:(.text+0x4d6): undefined reference
原创
2016-09-04 22:50:28 ·
10451 阅读 ·
1 评论