I cannot find any way to add the zip.h (from minzip) header in my C code (using VSCode, Windows 11).
I've added the minizip and zlib folder to includePath, also tried to run the code with -lz in terminal. Am I missing something obvious? im going mad
Edit: Last terminal command I tried was
gcc main.c -o main -I"C:/CodeAux/zlib-1213/contrib/minizip" -L"C:/CodeAux/zlib-1213" -lminizip -lz
, but I get
C:/Compilers/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lminiunzip: No such file or directory
collect2.exe: error: ld returned 1 exit status
(I get this for every unzip function). I tried -lminiunzip
but it is not found:
C:/Compilers/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lminiunzip: No such file or directory