I have downloaded libarchive-1.02.019.exe from
there:
which install the required binaries and headers to
use libarchive.
I'm porting a software from MacOSX(10.3) to
MingW gcc (gcc 3.2 on WindowsXP).
The software compiles (and runs) well on MacOSX but
on Windows I have the following problems:
1.
in archive_entry.h:73, 88, 105, 122 used of defined
types: uid_t, gid_t and cause a parse error.
and I did a search on all the include files in the
MingW distribution and find no header which typedef them.
2.
in the code I try to port it uses a
struct stat fileStat;
and try to access these (apparently unexisting on
windows) members
fileStat.st_size
fileStat.st_blocks so ...
I can't use libarchive as it has dodgy headers and
some struct seems to be missing members.
On MacOSX the code use lib archive 1.01.020.
The slight difference in version (earlier on
MacOSX) 'could' explain the different structure (although I'm surprize by
missing member in newer version) but not the undefeined type uid_t, gid_T which
work well on windows.
Any ideas, tips, links?
Thanks!
|