Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- make unix
- gcc -Wall -O2 -std=c99 `pkg-config --cflags libcurl` `pkg-config --cflags libzip` -DZIP_STATIC -c -o unzip.o unzip.c
- unzip.c: In function ‘unzip’:
- unzip.c:9:2: error: unknown type name ‘zip_t’
- zip_t *za = NULL;
- ^
- unzip.c:18:10: warning: assignment from incompatible pointer type [enabled by default]
- if ((za = zip_open(from, 0, &error)) == NULL) {
- ^
- unzip.c:22:2: warning: passing argument 1 of ‘zip_get_num_entries’ from incompatible pointer type [enabled by default]
- for (int i = 0, n = zip_get_num_entries(za, 0); i < n; i++) {
- ^
- In file included from unzip.c:1:0:
- /usr/include/zip.h:296:24: note: expected ‘struct zip *’ but argument is of type ‘int *’
- ZIP_EXTERN zip_int64_t zip_get_num_entries(struct zip *, zip_flags_t);
- ^
- unzip.c:24:3: warning: passing argument 1 of ‘zip_stat_index’ from incompatible pointer type [enabled by default]
- if (zip_stat_index(za, i, 0, &sb)) continue;
- ^
- In file included from unzip.c:1:0:
- /usr/include/zip.h:310:16: note: expected ‘struct zip *’ but argument is of type ‘int *’
- ZIP_EXTERN int zip_stat_index(struct zip *, zip_uint64_t, zip_flags_t, struct zip_stat *);
- ^
- unzip.c:33:4: warning: passing argument 1 of ‘zip_fopen_index’ from incompatible pointer type [enabled by default]
- if (!(zf = zip_fopen_index(za, i, 0))) goto finish;
- ^
- In file included from unzip.c:1:0:
- /usr/include/zip.h:290:29: note: expected ‘struct zip *’ but argument is of type ‘int *’
- ZIP_EXTERN struct zip_file *zip_fopen_index(struct zip *, zip_uint64_t, zip_flags_t);
- ^
- unzip.c:58:3: warning: passing argument 1 of ‘zip_close’ from incompatible pointer type [enabled by default]
- zip_close(za);
- ^
- In file included from unzip.c:1:0:
- /usr/include/zip.h:261:16: note: expected ‘struct zip *’ but argument is of type ‘int *’
- ZIP_EXTERN int zip_close(struct zip *);
- ^
- Makefile:32: ошибка выполнения рецепта для цели «unzip.o»
- make: *** [unzip.o] Ошибка 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement