当前位置: 动力学知识库 > 问答 > 编程问答 >

c++ - Trying to compile program that uses zlib. Link unresolved error

问题描述:

While trying to compile program, that uses zlib, i got following errors:

Error 1 error LNK2019: unresolved

external symbol _compress referenced

in function "void __cdecl

save_image_in_pakfile(class

std::basic_ofstream > &,struct

_IplImage *)" ([email protected]@[email protected][email protected]@[email protected]@@[email protected]@[email protected]@@Z) buffer_management.obj

Error 2 error LNK2001: unresolved

external symbol

_compress fern_based_point_classifier.obj

And two more same errors but related to uncompress function.

I use the vs2008 C++, and at the project properties I added in

C/C++ : Additional include directories the path to header files of zlib.

And at linker properties I added at additional dependencies:

zlibwapi.lib and zlibstat.lib files.

How to resolv the problem?

If I made some mistakes please show me them..

分享给朋友:
您可能感兴趣的文章:
随机阅读: