MySQL Connector/C++ BAD ACCESS crash

不问归期 提交于 2019-12-01 07:10:39

Ok, the problem is solved.

Here the problem was one compile flag. The MySQL Connector/C++ was compiled without the
-stdlib=libc++ flag, but Xcode added that compile/link flag to its commands. This caused the crash. This also explains, why the manually compiled program worked, as I didn't include that flag to the compile command.

To make it more clear: I recompiled the MySQL Connector/C++ with the -stdlib=libc++ flag. Then the program compiled by Xcode works fine for me. To compile the MySQL Connector/C++ I added

-DMYSQL_CXXFLAGS=-stdlib=libc++

to the cmake command that needs to be run when installing the connector.

make VERBOSE=1

then proved that the flag is actually used when compiling the connectors source.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!