C++ 致命错误:';openssl/conf.h';找不到文件

C++ 致命错误:';openssl/conf.h';找不到文件,c++,macos,openssl,homebrew,C++,Macos,Openssl,Homebrew,我正在使用一个编译器尝试生成一组我收到的文件,行#include breaks with the error:Fatal error:'openssl/conf.h'file not found 我已经使用brew安装了openssl,但它似乎不起作用。我是否需要以某种方式将openssl连接到我正在使用的文件夹 我正在使用最新的mac OS sierra。运行: brew info openssl 给出了解决方案: For compilers to find this software yo

我正在使用一个编译器尝试生成一组我收到的文件,行#include breaks with the error:Fatal error:'openssl/conf.h'file not found

我已经使用brew安装了openssl,但它似乎不起作用。我是否需要以某种方式将openssl连接到我正在使用的文件夹

我正在使用最新的mac OS sierra。

运行:

brew info openssl
给出了解决方案:

For compilers to find this software you may need to set:
    LDFLAGS:  -L/usr/local/opt/openssl/lib
    CPPFLAGS: -I/usr/local/opt/openssl/include

你在用什么编译器?包含文件的搜索路径是什么?它是否包含自制OpenSSL目录?我如何更改路径以包含Howbrew和OpenSSL?我不知道。您还没有告诉我们您使用的是什么编译器或构建系统。我在makefile中使用CC编译器“CC”表示“C编译器”。你的意思是
/usr/bin/cc
,即叮当声吗?这在xcode中是如何工作的?我已将
-L/usr/local/opt/openssl/lib
添加到
其他链接器标志
中,并将
-I/usr/local/opt/openssl/include
添加到
其他C标志
中,但xcode找不到openssl/conf。h@78573最好问一个新的问题,包括所有细节。我犯了一个错误,我的库已经过时,并且不匹配依赖项,这就是为什么它在我的场景中不起作用。更新有帮助。