Advertisement
Guest User

Untitled

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