Page 1 of 1

Compile error in BDS 2006 SVN trunk

Posted: 13.08.2017, 04:49
by rmendozawebcreek
Hi, i try to compile the components with BDS 2006 version and get this error:

[Pascal Error] Zeos.inc(120): E2026 Constant expression expected

[Pascal Error] Zeos.inc(129): E2026 Constant expression expected

and 14 more very similar.

The source error is in the file Zeos.inc, in the portion code like this:

... //Line 119 - 122
//now compiler related (un)defines do follow up here
{$IF CompilerVersion < 15}
"Delphi versions below Delphi 7 aren't supported anymore"
{$ELSE}
...

Also, in the version Tokyo 10.2 i can do this compilation succesfully, so what is the problem? the version i checkout with subversion from SVN snapshot

Re: Compile error in BDS 2006 SVN trunk

Posted: 14.08.2017, 15:08
by marsupilami
Hello rmendozawebcreek,

if compiling fails at these lines it usually would mean you have a very old compiler on your system and for some reason that compiler gets used? I don't have a Delphi 2006 to test with but things work correctly on my Installations of Delphi 2007. Are you sure you use the right compiler / IDE?

With best regards,

Jan

Re: Compile error in BDS 2006 SVN trunk

Posted: 14.08.2017, 15:39
by marsupilami
One more note: To get an older compiler into the picture I tried compiling Zeos 7.2 with Delphi 7. It works just fine.

With best regards,

Jan