C++ / mysql Connector - undefined reference to get_driver_instance - already tried the easy stuff

后端 未结 4 899
后悔当初
后悔当初 2020-12-08 10:37

Yes this question has been asked before ... I\'ve tried everything mentioned in the previous answers. My setup is really straightforward so this shouldn\'t be so hard.

4条回答
  •  温柔的废话
    2020-12-08 11:16

    In case you are as forgetful as me and didn't link the library in CMakeLists.txt:

    target_link_libraries( mysqlcppconn)
    

提交回复
热议问题