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

后端 未结 8 1036
不知归路
不知归路 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:09

    I spent several hours trying to solve the problem exactly the same as you. I finally found out the problem myself. I downloaded the 64-bit version of MySQL/SQL Connector and followed a tutorial in MySQL.com in setting up win32 console project its properties and got the error message as mentioned. It was because the tutorial is teaching to build a 32-bit program. After I change to build a release version of X64 code, problem was solved. Make sure your library is 32bit or 64bit and then configure your Visual Studio accordingly (in configuration manager).

    0 讨论(0)
  • 2020-12-19 04:13

    I solved using the 32bit version both for mysql server and connector/c++ on 64bit OS. I think the problem are the boost libraries but im not sure.

    0 讨论(0)
提交回复
热议问题