当前位置: 技术问答>linux和unix
Linux 链接自己生成的动态库 失败。
来源: 互联网 发布时间:2017-03-18
本文导语: 如题:请问 libdbmanager.so 是新生成的动态库,libmysqlpp.so.3.0.9是原有的动态库。 问题: make时;错误如下: /tmp/ccCgXDUP.o: In function `main': /home/test/dbcommontest/test.cpp:13: undefined reference to `CDBConnectionManager::setConfig(char c...
如题:请问
libdbmanager.so 是新生成的动态库,libmysqlpp.so.3.0.9是原有的动态库。
问题:
make时;错误如下:
/tmp/ccCgXDUP.o: In function `main':
/home/test/dbcommontest/test.cpp:13: undefined reference to `CDBConnectionManager::setConfig(char const*, char const*, char const*, char const*)'
/home/test/dbcommontest/test.cpp:14: undefined reference to `Db_showlog::Db_showlog()'
/home/test/dbcommontest/test.cpp:24: undefined reference to `mysqlpp::operator
libdbmanager.so 是新生成的动态库,libmysqlpp.so.3.0.9是原有的动态库。
问题:
make时;错误如下:
/tmp/ccCgXDUP.o: In function `main':
/home/test/dbcommontest/test.cpp:13: undefined reference to `CDBConnectionManager::setConfig(char const*, char const*, char const*, char const*)'
/home/test/dbcommontest/test.cpp:14: undefined reference to `Db_showlog::Db_showlog()'
/home/test/dbcommontest/test.cpp:24: undefined reference to `mysqlpp::operator