您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息
三六零分类信息网 > 运城分类信息网,免费分类信息发布

XCode+Mac+MySQL版

2025/11/24 15:40:13发布8次查看
3. 项目配置 3.1 header search paths 加 /usr/local/include /usr/local/mysql/include 3.2 library search paths 加 /usr/local/lib /usr/local/mysql/lib 3.1 other linker flags 加 -lmysqlcppconn -lm -lmysqlclient -lz 4. build phases加入lib 5. 运
3.项目配置
3.1 header search paths加
  /usr/local/include
  /usr/local/mysql/include
3.2 library search paths加
  /usr/local/lib
  /usr/local/mysql/lib
3.1 other linker flags加
  -lmysqlcppconn -lm -lmysqlclient -lz
4. build phases加入lib
5. 运行
so, what’s the cleanest solution? specifically, one that avoids having to alter everything you ever write, just to get around a (hopefully soon fixed) bug in the mysql installation?
do this:
sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
in other words, create a link from /usr/local/mysql/lib (actual location) to /usr/lib (the place mysql goes looking).
运城分类信息网,免费分类信息发布

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product