"对strerror_r的未定义引用"使用OpenSSL-1.1.0e和MinGW

时间:2017-05-03 06:29:07

标签: c windows openssl mingw

在构建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 Configure mingw no-shared

  3. make

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

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

1 个答案:

答案 0 :(得分:1)

strerror_r可能无法在mingw中实现,您需要检查minwg最新文档

相关问题