我正在尝试通过Visual Studio2013 (MSVC-12.0)构建MySQL++库。我已经下载了"mysql++-3.2.1.tar.gz“并解压缩。然后,我将"mysql-connector-c-6.1.3-win32\ include \“路径添加到包含路径中,并将"mysql-connector-c-6.1.3-win32\lib\”路径添加到mysql++解决方案中的mysqlpp项目的库路径中,并尝试构建它:
error LNK2001: unresolved external symbol mysql_thread_init
error LNK2001: unresolved external symbol mysql_num_rows
error LNK2001: unresolved external symbol mysql_num_fields
etc我还应该链接到这个项目吗?我该怎么解决它呢?
发布于 2014-02-21 21:17:50
这些符号来自mysql客户端库,mysql++中没有包含该库。
配置属性->链接器-> Input ->附加依赖项需要libmysql.lib
发布于 2014-11-25 23:37:53
我猜你用的是x64,但lib是win32
https://stackoverflow.com/questions/21935414
复制相似问题