【问题标题】:Cygwin Mingw (C) can't find opensslCygwin Mingw (C) 找不到 openssl
【发布时间】:2022-01-19 05:44:26
【问题描述】:
src/tls_openssl.c:25:25: fatal error: openssl/ssl.h: No such file or directory
 #include <openssl/ssl.h>
                         ^
compilation terminated.
make: *** [Makefile:1643: src/libstrophe_la-tls_openssl.lo] Error 1

使用 make 和 gcc 编译时,我在 cygwin 中遇到此错误。我需要做什么才能让它用 openssl 编译?

【问题讨论】:

    标签: openssl cygwin mingw


    【解决方案1】:

    您缺少包含所需标头的包。
    cygcheck 是您找到它的朋友

    cygcheck -p openssl/ssl.h
    Found 14 matches for openssl/ssl.h
    ..
    libssl-devel-1.1.1l-2 - libssl-devel: A general purpose cryptography toolkit wit
    h TLS implementation (development)
    ...
    mingw64-x86_64-openssl-1.0.2u+za-1 - mingw64-x86_64-openssl: OpenSSL encryption
    library for Win64 toolchain
    ...
    

    所以安装 libssl-devel 用于 Cygwin 构建或 mingw64-x86_64-openssl 用于 Mingw 构建

    【讨论】:

      猜你喜欢
      • 2012-07-07
      • 2011-09-17
      • 2017-01-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多