T.T*_*.T. 0 c++ compiler-construction gzip visual-studio
我正在开发一个已包含gzip库的项目,如下所示:
zlib\zlib.h
zlib\zlib.lib
zlib\zconf.h
Run Code Online (Sandbox Code Playgroud)
我想使用此.lib中的gzip函数,但我收到以下错误:
Compress.cpp
Linking...
Compress.obj : error LNK2001: unresolved external symbol _gzclose
Compress.obj : error LNK2001: unresolved external symbol _gzerror
Compress.obj : error LNK2001: unresolved external symbol _gzwrite
Compress.obj : error LNK2001: unresolved external symbol _gzopen
.\Debug/files.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.
Run Code Online (Sandbox Code Playgroud)
链接设置包括:
对象/库模块:zlib.lib
项目选项:
zlib.lib
在使用gzX()函数的文件中,它
#include "zlib/zlib.h"
Run Code Online (Sandbox Code Playgroud)
还有什么需要做才能使用这些功能?
谢谢.
编辑:使用Visual Studio 6.0 C++
EDIT2:原来我使用的静态库有gz()函数.头文件仍然有它们,这是误导.
| 归档时间: |
|
| 查看次数: |
5944 次 |
| 最近记录: |