开发者

Trying to compile program that uses zlib. Link unresolved error

开发者 https://www.devze.com 2023-01-07 02:00 出处:网络
While trying to compile program, that uses zlib, i got following errors: Error 1error LNK2019: unresolved

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 *)" (?save_image_in_pakfile@@YAXAAV?$basic_ofstream@DU?$char_traits@D@std@@@std@@PAU_IplImage@@@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 开发者_如何学Pythonproject 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..

0

精彩评论

暂无评论...
验证码 换一张
取 消