Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Problem with #include

I work with XE2.

When I load PNG file to TImage.Picture in C++ Builder designer, it adds this include line
#include <Vcl.Imaging.pngimage.hpp>

This generate the following error message when compiling:
[C++ Error] System.ZLib.hpp(252, 33): E2040 Declaration terminated incorrectly

What is the solution for this problem?


Comments

  • 2 Comments sorted by Votes Date Added
  • These are VCL files, so not directly related to ElPack. Apart from that such problems are usually caused by several copies of the mentioned files (Zlib). Make sure that only one copy of affected files exist or make at least sure that only one version is included.
Sign In or Register to comment.