How to fix unresolved external symbol due to MySql Connector C++?

后端 未结 8 1037
不知归路
不知归路 2020-12-19 03:24

I followed this tutorial http://blog.ulf-wendel.de/?p=215#hello. I tried both on Visual C++ 2008 and Visual C++ 2010. Either static or dynamic, the compiler gave me the same

8条回答
  •  [愿得一人]
    2020-12-19 04:07

    I faced Same Error while using c++/Sql Connector. and after spending entire day I solved this problem by using 32 bit libmysql.dll , 32 bit libmysqlcppcon.lib and 32 bit libmysqlcppcon.dll ( Dynamic binding is used because driver instance creation is only available in dynamic library of libmysqlcppcon.lib)

    I found very good link explaining everything along with the working code. I think it would help others if they stuck at the same issue.

    http://r3dux.org/2010/11/how-to-use-mysql-connectorc-to-connect-to-a-mysql-database-in-windows/

提交回复
热议问题