In IdZLibHeaders.pas, when STATICLOAD_ZLIB is defined, AVs occur in BCB5's compiler. The ZLib .OBJ files in the \Lib\Protocols folder are different than the .OBJ files in the \Lib\Protocols\ZLib folder. If all of the .OBJ files are deleted, ZLib is recompiled with BCB5's make.exe via the build.bat script, and the .OBJs moved into the \Lib\Protocols folder, the AVs go away but the compiler then complains about 3 unresolved external functions (inflateReset2(), inflateMark(), and inflateUndermine()) which do not exist in the ZLib source code that is currently checked in.
In IdZLibHeaders.pas, when STATICLOAD_ZLIB is defined, AVs occur in BCB5's compiler. The ZLib .OBJ files in the \Lib\Protocols folder are different than the .OBJ files in the \Lib\Protocols\ZLib folder. If all of the .OBJ files are deleted, ZLib is recompiled with BCB5's make.exe via the build.bat script, and the .OBJs moved into the \Lib\Protocols folder, the AVs go away but the compiler then complains about 3 unresolved external functions (inflateReset2(), inflateMark(), and inflateUndermine()) which do not exist in the ZLib source code that is currently checked in.