gpt4 book ai didi

c++ - XCode 中的 libSOIL 链接器错误

转载 作者:太空宇宙 更新时间:2023-11-04 13:36:52 25 4
gpt4 key购买 nike

所以,我从 https://github.com/smibarber/libSOIL 下载了 libSoil并运行 make,然后在终端中运行 sudo make install。没有错误,似乎很顺利。

但是当我尝试将 libSOIL.dylib 添加到我的 XCode 项目中的“Link Binary With Libraries”列表时,我在尝试编译时遇到链接器错误。

它说:

ld: library not found for -lSOIL
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我成功地安装了 GLFW3 并将其链接到我的项目,没有任何问题,所以我不确定这里的问题是什么。

最佳答案

我发现了问题:我的标题搜索路径在/usr/local/Cellar/glfw3/3.1/include 而不是/usr/local/include

关于c++ - XCode 中的 libSOIL 链接器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29257548/

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