从一本书看到,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的链接库时,发生了错误。单又前进了一步。
继续。。。。。未完