我试图在mac os x 10.9.2上编译mysql-connector-cpp
我从lp:~mysql / mysql-connector-cpp / trunk下载了最后一个中继,并按照以下说明操作:ftp://ftp.ntu.edu.tw/tmp/MySQL/doc/refman/5.5/en/connector-cpp-installation-source-unix.html
但是stl发生了一些链接器错误:
Linking CXX shared library libmysqlcppconn.dylib
Undefined symbols for architecture x86_64:
"std::runtime_error::what() const", referenced from:
vtable for sql::SQLException in mysql_art_resultset.cpp.o
vtable for sql::InvalidArgumentException in mysql_art_resultset.cpp.o
vtable for sql::InvalidInstanceException in mysql_art_resultset.cpp.o
vtable for sql::MethodNotImplementedException in mysql_art_resultset.cpp.o
vtable for sql::SQLException in mysql_art_rset_metadata.cpp.o
vtable for sql::MethodNotImplementedException in mysql_art_rset_metadata.cpp.o
vtable for sql::InvalidArgumentException in mysql_art_rset_metadata.cpp.o
...
有人遇到这个问题吗?是否需要一些额外的标志? 感谢。