I cannot get James Taylor's excellent little "seek-bzip2" to compile under Windows? It can index a bzip2 archive and then use that index to provide random access to the individual blocks of the archive.
It's written in C and requires 64 bit long longs and is available here: http://bitbucket.org/james_taylor/seek-bzip2
I am unable to get it to compile on any free Windows C compiler.
- Borland doesn't have some required header files.
- lcc compiles it but it fails with "unexpected EOF" on any bzip2 file.
- mingw will compile it if you remove the "-m64" flag but it will fail in the same way as lcc above.
The free compilers don't seem to have very good debugging support and MS Visual Studio refuses to install on my removable hard drive and my netbook's C and D drives lack sufficient space.
EDIT I've reworded this question since I was asking somebody to port it for me but I'm happy to try to port it myself. I just don't know where to begin. I haven't touched C since before 64-bit types became common.