v9.20, StreamObjects.cpp fails to compile with g++
A free file archiver for extremely high compression
Brought to you by:
ipavlov
Using 7z920.tar.bz2 as available from 7-zip.org, g++ 4.3.4 fails to compile StreamObjects.cpp. There are two issues, one is that it uses free() and other stdlib.h functions without importing the header (I fixed this by including stdlib.h from Alloc.h and removing the include from Alloc.c) and there appears to be an ambiguous conversion in CDynBufSeqOutStream::CopyToBuffer, _buffer has `operator const unsigned char *()` and `operator unsigned char *()` and g++ does not know which one to use to get a `cost void*` needed by memcpy (I fixed that by invoking the operator explicitly, not sure if that is the best way).
Thanks!