gpt4 book ai didi

c - Xcode 找不到第三方库

转载 作者:行者123 更新时间:2023-11-30 16:46:32 48 4
gpt4 key购买 nike

我正在尝试在我的 Mac 上安装第三方动态库。我有 header 和共享库 xxx.dylib。我已将 header 放入/usr/local/include 中,并将 xxx.dylib 放入/usr/local/lib 中,但是当在 Xcode 中时,我尝试包含该库(以这种方式:),编译器告诉我他找不到任何事物。我做错了什么?

最佳答案

您可能需要将/usr/local/include 和/usr/local/lib 添加到 Xcode header 搜索路径和库搜索路径设置中。

关于c - Xcode 找不到第三方库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43698593/

48 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com