« | October 2025 | » | 日 | 一 | 二 | 三 | 四 | 五 | 六 | | | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | | |
| 公告 |
戒除浮躁,读好书,交益友 |
Blog信息 |
blog名称:邢红瑞的blog 日志总数:523 评论数量:1142 留言数量:0 访问次数:9721865 建立时间:2004年12月20日 |

| |
[c++]zlib1.2.5的编译 原创空间, 文章收藏, 软件技术, 电脑与网络
邢红瑞 发表于 2011/5/27 11:39:30 |
zlib1.2.5没有了1.2.4的vc6工程,只好使用命令行编译。通过win32/Makefile.msc发现有4种编译方式,如下:# Usage:# nmake -f win32/Makefile.msc (standard build)# nmake -f win32/Makefile.msc LOC=-DFOO (nonstandard build)# nmake -f win32/Makefile.msc LOC="-DASMV -DASMINF" \# OBJA="inffas32.obj match686.obj" (use ASM code, x86)# nmake -f win32/Makefile.msc AS=ml64 LOC="-DASMV -DASMINF" \# OBJA="inffasx64.obj gvmat64.obj inffas8664.c" (use ASM code, x64)
首先打开Visual Studio 2005 Command Prompt,进入到zlib-1.2.5\contrib\masmx86,然后运行bld_ml32.bat,生成inffas32.obj和match686.obj。然后把这两个文件copy到zlib-1.2.5下,输入命令行nmake -f win32/Makefile.msc LOC="-DASMV -DASMINF" OBJA="inffas32.obj match686.obj"最后编译出zdll.lib |
|
|