extern variable cannot be initialized in zlib.hpp

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
sandy771
Posts: 194
Joined: Tue 22 May 2007 13:57

extern variable cannot be initialized in zlib.hpp

Post by sandy771 » Tue 09 Mar 2010 10:19

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?

Falcon
Devart Team
Posts: 19
Joined: Tue 02 Feb 2010 10:40

Post by Falcon » Wed 10 Mar 2010 08:52

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

Post Reply