gpt4 book ai didi

c++ - 在 XCode 中识别已安装的 C++ 库

转载 作者:太空狗 更新时间:2023-10-29 21:05:53 25 4
gpt4 key购买 nike

我已经下载并安装了 google-sparse_has_map

./configure 
make
make install

按照指示,没有问题,但是当我将它包含在 XCode 中时,如下所示:

#include <google/sparse_hash_map>

我收到以下错误:

Google/sparse_hash_map: No such file or directory.

安装在/usr/local/include/

我如何显示这个目录到 XCode?

最佳答案

看看我下面的图片:

Settings

您需要告诉 Xcode 库和包含文件在哪里。将路径添加到项目设置的“标题搜索路径”和“库搜索路径”。

关于c++ - 在 XCode 中识别已安装的 C++ 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8788213/

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