【发布时间】:2011-08-06 12:47:34
【问题描述】:
我正在使用 mingw。我从 Windows 的http://curl.haxx.se/download.html 链接下载了 OpenSSl 和 zlib。在所有 makefile32.m32 中更改 openSSl 和 Zlib 的路径。尝试使用 mingw32-make mingw32-ssl-zlib 构建,但是当我遇到错误时,我不明白为什么:(
错误是
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lssl32
collect2: ld returned 1 exit status
mingw32-make[1]: *** [libcurl.dll] Error 1
mingw32-make[1]: Leaving directory `c:/curl/lib'
mingw32-make: *** [mingw32-ssl] Error 2
我对 makefile 进行了更多更改。向 openSSl 库添加了写入路径。但我有两个库:libeay32.a 和 ssleay32.a。 makefile 中的选项是 curl_LDADD += -L$(OPENSSL_PATH)\lib\MinGW -leay32 -lssl32。当我将-lssl32更改为-lssleay32时,同样的错误是-找不到-lssleay32
【问题讨论】: