我vc2008工程,debug,release都是没问题的。 然后我加入了gzip功能,gzip网站上下载了dll文件和两个头文件,以及LIB文件。 debug下编译调试都没问题,但是当我release的时候,我根据readme已经把DLL文件放到system or system32 文件夹下了,编译是ok的,但是执行exe文件就一直出现错误对话框:“”请教这是什么原因造成的。
调试欢乐多
你可以在Release模式下调试,是不是缺少什么文件了.
Installing ZLIB1.DLL
====================
Copy ZLIB1.DLL to the SYSTEM or the SYSTEM32 directory.
Using ZLIB1.DLL with Microsoft Visual C++
=========================================
1. Install the supplied header files "zlib.h" and "zconf.h"
into a directory found in the INCLUDE path list. 2. Install the supplied library files "zdll.exp" and "zdll.lib"
into a directory found in the LIB path list. 3. Add "zdll.exp" or "zdll.lib" to your project. Notes:
- Usually, you don't need both the .exp file and the .lib file.
- If you wish, you may rename "zdll.exp" to "zlib1.exp", and/or
rename "zdll.lib" to "zlib1.lib".这就是gzip给的usage ,我就是按它的来的。