0

I need libzip.lib .h to use libzip in other projects. So I followed libzip with Visual Studio 2010 and all is fine until step 11. In fact, I open C:\devel\libzip-0.10.1\build\libzip.sln, execute "Generate the solution" and I get the following errors :

First :

2> zip_set_file_compression.c

2>....\lib\zip_set_file_compression.c(63): error C2275: 'zip_int32_t' : non conform use of this type as expression

2> C:/devel/libzip-0.11.1/lib\zipconf.h(33) : see declaration of 'zip_int32_t'

2>....\lib\zip_set_file_compression.c(63): error C2146: syntax error : missing ';' before identifier 'old_method'

2>....\lib\zip_set_file_compression.c(63): error C2065: 'old_method' : non declared identifier

2>....\lib\zip_set_file_compression.c(67): error C2065: 'old_method' : non declared identifier

I didn't change anything in source files so ... I don't understand. I'll check the file to see but I don't want to change things and then nothing works!

And secondly :

LINK : fatal error LNK1181: impossible to open file '..\lib\Release\zip.lib'

And indeed, I don't have any zip.lib file! Where do I get it? Has it to be created/generated in one of the steps 1 to 10? Do I have to get it on web?

4

1 回答 1

0

该变量在块内声明,C++ 风格。你必须在块的顶部声明它,C 风格。此错误已在每日 tarball 中得到纠正。

然而,许多其他错误仍然存​​在,我也无法编译 libzip 并将其与 Visual 链接。

于 2013-11-21T16:08:41.297 回答