简体   繁体   English

与MySQL和C ++链接

[英]Linking with MySQL and C++

I followed each step outlined within the MySQL C++ Connector and I keep getting the error LNK2019: unresolved external symbol _mysql_real_connect@32 referenced in function on build. 我遵循了MySQL C ++连接器中概述的每个步骤,并且不断收到错误LNK2019:构建时在函数中引用了未解析的外部符号_mysql_real_connect @ 32。 How can I connect with MySQL using C++? 如何使用C ++与MySQL连接?

Seems you are missing the reference to a lib. 似乎您缺少对lib的引用。 Make sure all the libs that came with the MySQL C++ Connector are referenced and included in the project (settings). 确保MySQL C ++连接器随附的所有库均已被引用并包含在项目中(设置)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM