Page 1 of 1

extern variable cannot be initialized in zlib.hpp

Posted: Tue 09 Mar 2010 10:19
by sandy771
When i drop a TMyConnection component on a form I get the following error

[BCC32 Error] Zlib.hpp(237): E2189 extern variable cannot be initialized

at line

extern PACKAGE int __fastcall deflateInit_(TZStreamRec &strm, int level, System::WideChar * version, int recsize);

Any ideas why this might be?

Posted: Wed 10 Mar 2010 08:52
by Falcon
try to include
Rad Studio/7.0/Include/Vcl/ZLib.hpp to the empty project
to check whether ZLib.hpp and corresponding libraries are valid and aren't the reason of the bug mentioned