MySQL Connector/C ++ OS X 10.9小牛和XCODE 5.0.2 [英] MySQL Connector/C++ OS X 10.9 Mavericks and XCODE 5.0.2
问题描述
最近我已经与OS X 10.9 Mavericks和MYSQL 5.6.16一起升级到XCode 5.0.2.有没有人能使MySQL Connector/C ++编译并在此设置下正常工作?
几年来,我一直没有问题地链接到Snow Leopard下的分布式MySQL Connector/C ++库,但是当我转移到上述设置时,我就没有运气了.
当我使用sql :: Driver-> connect时,我得到EXC_BAD_ACCESS(code = EXC_I386_GPFLT)
使用:
- XCode 5.0.2
- 小牛10.9.2
- MYSQL服务器5.6.16 Mac OS X 10.7(x86,64位),DMG存档
- MYSQL连接器/C ++ Mac OS X 10.7(x86,64位),压缩的TAR存档
- 提升1.55
我看到了以下帖子: MySQL Connector/C ++错误访问崩溃
因此,我尝试下载了MYSQL Connector/C ++源1.1.3,并设法使"static_test"子程序正常工作,但是其他测试失败,并且返回NULL的sql :: Driver-> connect相同.
有人吗?
确定.
以下帖子是相同的问题:
以防万一其他人有这种情况:
- 我下载了MYSQL Connector/C ++源1.1.13和CMake
- 我使用以下命令行创建了一个XCode项目:cmake -G Xcode
- 在XCode中编译所有内容
- 将创建的库复制到mysqlconn/lib目录
I've upgraded to XCode 5.0.2 along with OS X 10.9 Mavericks and MYSQL 5.6.16 recently. Has anyone had any luck getting the MySQL Connector/C++ to compile and work properly with this setup?
I've been linking with the distributed MySQL Connector/C++ library under Snow Leopard with no problem for a few years now, but when I shifted to the above mentioned setup, I have no luck.
When I use the sql::Driver->connect I get EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
USING:
- XCode 5.0.2
- Mavericks 10.9.2
- MYSQL server 5.6.16 Mac OS X 10.7 (x86, 64-bit), DMG Archive
- MYSQL Connector/C++ Mac OS X 10.7 (x86, 64-bit), Compressed TAR Archive
- Boost 1.55
I saw the following post: MySQL Connector/C++ BAD ACCESS crash
So tried I downloading the MYSQL Connector/C++ source 1.1.3 and managed to get the 'static_test' subprogram to work, but the other tests fail with the same sql::Driver->connect returning NULL.
Anybody?
OK resolved.
The following post is the same problem:
MySQL Connector/C++ BAD ACCESS crash
Just in case someone else has this situation:
- I downloaded the MYSQL Connector/C++ source 1.1.13 and CMake
- I used the following command line to create a XCode project: cmake -G Xcode
- Compiled everything in XCode
- Copied the created libs into the mysqlconn/lib directory
这篇关于MySQL Connector/C ++ OS X 10.9小牛和XCODE 5.0.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!