get_driver_instance() crashes with Qt

后端 未结 1 1177
旧巷少年郎
旧巷少年郎 2021-01-24 07:42

I\'m trying to User MySQL Connector/C++ with Qt, and had spent hours pulling my hairs on a problem. Here\'s a SIMPLE code to test out the connection:

int main(in         


        
相关标签:
1条回答
  • 2021-01-24 08:24

    From the documentation of MySQL Connector: "One problem that can occur is when the tools you use to build your application are not compatible with the tools used to build the binary versions of MySQL Connector/C++. Ideally you need to build your application with the same tools that were used to build the MySQL Connector/C++ binaries."

    And to repeat the question of akira: Why don't you use the QMYSQL drivers?

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