Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo
I downloaded the setup file for 32 bit windows https://sourceforge.net/projects/sevenzip/files/7-Zip/9.20/7z920.exe.
I issued the command 7z l d:\myImage.iso and it correctly displayed the contents.
Then I downloaded the source from https://sourceforge.net/projects/sevenzip/files/7-Zip/9.20/7z920.tar.bz2
and compiled the projects
source\C\Util\7z and source\CPP\7zip\Archive\7z both of them compiled successfully resulting the 2 files
7zDec.exe and 7z.dll respectively
now again i issued the command 7zDec l d:\myImage.iso
and it resulted in ERROR #17.
I recently compiled 7zDec with MinGw and I got the same error with the following command:
7zDec l C:\myzip.zip
So I then used GDB (GNU Debugger) and found that SzArEx_Open2 returned SZ_ERROR_NO_ARCHIVE. SZ_ERROR_NO_ARCHIVE is defined as 17 by the way, which explains the number. Here is the code in SzArEx_Open2 that does this.
Please advise on how to fix this problem.
7zDec decodes only .7z archives.
thanks Igor. Just figured that out.
I tried it with a 7z archive and it worked.