gpt4 book ai didi

c - "undefined reference to strerror_r"与 OpenSSL-1.1.0e 和 MinGW

转载 作者:太空宇宙 更新时间:2023-11-04 03:22:57 27 4
gpt4 key购买 nike

在构建 OpenSSL-1.1.0d 时出现以下错误。

./libcrypto.a(o_str.o):o_str.c:(.text+0x5cb): undefined reference to `strerror_r'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [Makefile.shared:187: link_app.] Error 1
make[2]: Leaving directory '/c/MinGW/openssl-1.1.0d'
make[1]: *** [Makefile:5966: apps/openssl.exe] Error 2
make[1]: Leaving directory '/c/MinGW/openssl-1.1.0d'
make: *** [Makefile:128: all] Error 2

我按照下面的步骤来构建它

  1. tar -xf vv.tar.gz

  2. perl 配置mingw 不共享

  3. 制作

说明来自Compiling OpenSSL on Windows (mingw32) .

为什么链接失败,我该如何解决?

最佳答案

strerror_r在mingw中可能没有实现,需要查看minwg最新文档

关于c - "undefined reference to strerror_r"与 OpenSSL-1.1.0e 和 MinGW,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43752633/

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