安装Openssl烦恼的解决第四步

本文记录了使用do_ms进行OpenSSL DLL编译的过程及遇到的链接错误。尝试使用VC编译器,虽速度较慢但能减少出错机会。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

从一本书看到,do_ms在编译过程中只是用了VC的编译器,而没有使用其他的,所以虽然慢一些,单出错的机会少。所以,改用它

F:/openssl-0.9.8g>ms/do_ms

F:/openssl-0.9.8g>perl util/mkfiles.pl  1>MINFO

F:/openssl-0.9.8g>perl util/mk1mf.pl no-asm VC-WIN32  1>ms/nt.mak

F:/openssl-0.9.8g>perl util/mk1mf.pl dll no-asm VC-WIN32  1>ms/ntdll.mak

F:/openssl-0.9.8g>perl util/mk1mf.pl no-asm VC-CE  1>ms/ce.mak
%OSVERSION% is not defined at util/pl/VC-32.pl line 41.
Compilation failed in require at util/mk1mf.pl line 138.

F:/openssl-0.9.8g>perl util/mk1mf.pl dll no-asm VC-CE  1>ms/cedll.mak
%OSVERSION% is not defined at util/pl/VC-32.pl line 41.
Compilation failed in require at util/mk1mf.pl line 138.

F:/openssl-0.9.8g>perl util/mkdef.pl 32 libeay  1>ms/libeay32.def

F:/openssl-0.9.8g>perl util/mkdef.pl 32 ssleay  1>ms/ssleay32.def

F:/openssl-0.9.8g>nmake -f ms/ntdll.mak

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

Building OpenSSL
        perl util/copy.pl ./crypto/buildinf.h tmp32dll/buildinf.h
Copying: ./crypto/buildinf.h to tmp32dll/buildinf.h
        link /nologo /subsystem:console /opt:ref /dll /out:out32dll/libeay32.dll
 /def:ms/LIBEAY32.def @C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/nma01236.
   Creating library out32dll/libeay32.lib and object out32dll/libeay32.exp
cryptlib.obj : error LNK2001: unresolved external symbol _OPENSSL_ia32_cpuid
out32dll/libeay32.dll : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.

F:/openssl-0.9.8g>

可以看到在生成dll的链接库时,发生了错误。单又前进了一步。

继续。。。。。未完

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值