I stepped through the config and read "requires a certain amount of memory for decompression and adds several files to the library" and thought "oh well, lets just disable this"... So, I do not really rely on compiling without bzip2. I just wanted to let you know.
In the 1.7.1 irrCompileConfig.h I deleted the _IRR_COMPILE_WITH_BZIP2_ define and with VS 2008 Pro I get the following linker errors:
Code: Select all
1>Linking...
1>huffman.obj : error LNK2001: unresolved external symbol _bz_internal_error
1>blocksort.obj : error LNK2001: unresolved external symbol _bz_internal_error
1>bzcompress.obj : error LNK2001: unresolved external symbol _bz_internal_error
1>bzlib.obj : error LNK2001: unresolved external symbol _bz_internal_error
1>decompress.obj : error LNK2001: unresolved external symbol _bz_internal_error
1>..\..\bin\Win32-visualstudio\Irrlicht.dll : fatal error LNK1120: 1 unresolved externals
EDIT: I haven't looked into the BZIP2 details, so I don't know, if this is a good idea to do so, but defining bz_internal_error in CZipReader.cpp all the time (without #ifdef) is working.