gpt4 book ai didi

c - openssl/bio.h : No such file or directory error

转载 作者:行者123 更新时间:2023-11-30 16:12:25 28 4
gpt4 key购买 nike

我正在尝试使用 Netbeans IDE 和 windows 7 32 位操作系统编译 C 程序。该程序引用了以下 header

#include <openssl/bio.h>

#include <openssl/ssl.h>

#include <openssl/err.h>

我已经从 Cygwin 下载了 openssl 软件包。我能够从 C:\cygwin\bin\openssl.exe 路径成功运行 Openssl.exe,没有任何错误。我已经定义了系统环境变量,并将 C 编译器中的目录包含到 C:\cygwin\bin。

但是当编译程序时,我收到“openssl/bio.h:没有这样的文件或目录” fatal error 。

作为替代方案,我下载了“openssl_1.1.1.orig.tar.gz”并使用 cygwin 终端对其进行了扩展。这些文件夹确实包含所有必需的头文件,但即使在将包含目录路径设置为新下载的目录后,我仍然看到相同的错误。

请让我知道我哪里出错了。

最佳答案

您需要安装libssl-devel

$ cygcheck -p usr/include/openssl/bio.h
Found 3 matches for usr/include/openssl/bio.h
libssl-devel-1.1.1b-1 - libssl-devel: A general purpose cryptography toolkit with TLS implementation (development)
libssl-devel-1.1.1c-1 - libssl-devel: A general purpose cryptography toolkit with TLS implementation (development)
libssl-devel-1.1.1d-1 - libssl-devel: A general purpose cryptography toolkit with TLS implementation (development)

关于c - openssl/bio.h : No such file or directory error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58339393/

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