Hi there everyone,
My environment:
Lazarus 2.1.0/FPC 3.2
mORMot version 1.18.6270
ZeosLib 8.0 r7460
I am having a very strange compilation error with Zeos 8.0
The compilation error was there in previous versions shows up once in a while and then later goes away. I decided to update to the latest version r7460 but I still have the problem.
The problem is on line 649 of ZExpression.pas
The FPC compiler says:
ZExpression.pas(649,23) Error: Incompatible type for arg no. 2: Got "Class Of IZFunction", expected "TClass"
How do I get around this problem?
Cheers,
JD
ZeosLib 8.0 r7460 Compilation Error
ZeosLib 8.0 r7460 Compilation Error
You do not have the required permissions to view the files attached to this post.
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: ZeosLib 8.0 r7460 Compilation Error
Hello JD,
hmm - we are not currently seeing this problem. But then we currently test with FPC 3.2-fixes. Could you check (using fpclazup?) if this problem still occurs with FPC 3.2-fixes?
Best regards,
Jan
hmm - we are not currently seeing this problem. But then we currently test with FPC 3.2-fixes. Could you check (using fpclazup?) if this problem still occurs with FPC 3.2-fixes?
Best regards,
Jan
Re: ZeosLib 8.0 r7460 Compilation Error
Hi there Jan,
Thanks for your reply and your suggestion. I installed a new copy of Lazarus with FPC 3.2 fixes and the result was the same. The compiler threw out line 649 of ZExpression.pas.
As you can see from the image below, my installation of FPC 3.2 fixes was successful.
Cheers,
Jide
Thanks for your reply and your suggestion. I installed a new copy of Lazarus with FPC 3.2 fixes and the result was the same. The compiler threw out line 649 of ZExpression.pas.
As you can see from the image below, my installation of FPC 3.2 fixes was successful.
Cheers,
Jide
You do not have the required permissions to view the files attached to this post.
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: ZeosLib 8.0 r7460 Compilation Error
Hello Jide,
I id some tests today: I took the latest Zeos 8.0 and compiled it using Lazarus 2.0.12 and FPC 3.2.0 which in turn were generated using fpcupdeluxe. In my tests Zeos compiles for x86 as well as for x86_64 on my Windows 7 64 Bits VM.
So - what advice can I give:
Jan
I id some tests today: I took the latest Zeos 8.0 and compiled it using Lazarus 2.0.12 and FPC 3.2.0 which in turn were generated using fpcupdeluxe. In my tests Zeos compiles for x86 as well as for x86_64 on my Windows 7 64 Bits VM.
So - what advice can I give:
- Please make sure that there are no old compiled files from Zeos. There are reports that fpc might use outdated files from time to time. Before compiling our test suite I usually delete the following files: *.exe, *.o, *.ppu, *.a, *.rsj, *.compiled, *.or, *.res. Maybe it is a good idea to use SVN cleanup to delete any unversioned files.
- Reset Zeos.inc and ZeosLazarus.inc to their default values, in case you modified them.
- Make sure to compile the packages in this order:
- zcore
- zparsesql
- zplain
- zdbc
- zcomponent
- zcomponentdesign
Jan
Re: ZeosLib 8.0 r7460 Compilation Error
Hi JD,
Why don't you use the "official" version Lazarus 2.0.12 ?.
As far as I know, version 2.10 is not planned, only 2.0.14 and I hope 2.2.
Michał
Why don't you use the "official" version Lazarus 2.0.12 ?.
As far as I know, version 2.10 is not planned, only 2.0.14 and I hope 2.2.
Michał
Re: ZeosLib 8.0 r7460 Compilation Error
Hello Jan,marsupilami wrote: ↑23.04.2021, 09:29 Hello Jide,
I id some tests today: I took the latest Zeos 8.0 and compiled it using Lazarus 2.0.12 and FPC 3.2.0 which in turn were generated using fpcupdeluxe. In my tests Zeos compiles for x86 as well as for x86_64 on my Windows 7 64 Bits VM.
So - what advice can I give:Best regards,
- Please make sure that there are no old compiled files from Zeos. There are reports that fpc might use outdated files from time to time. Before compiling our test suite I usually delete the following files: *.exe, *.o, *.ppu, *.a, *.rsj, *.compiled, *.or, *.res. Maybe it is a good idea to use SVN cleanup to delete any unversioned files.
- Reset Zeos.inc and ZeosLazarus.inc to their default values, in case you modified them.
- Make sure to compile the packages in this order:
- zcore
- zparsesql
- zplain
- zdbc
- zcomponent
- zcomponentdesign
Jan
Thanks a lot for your suggestions. I think the problem started because I wanted to choose between using SynDBPostgres from mORMot or the Zoes library. I have compiler defines that do this. I've decided to keep just SynDBPostgres for the old project.
When I created a new project using just Zeos, everything worked as it should.
Thanks,
JD
Re: ZeosLib 8.0 r7460 Compilation Error
Hi there Michal,
I had to go with an unofficial version because there were some recent modifications in trunk to some components I use that the official version cannot compile.
In any case, I've decided to limit myself to backend server, non-GUI development with Lazarus except for exceptional cases. I use the mORMot framework with the Zeos library for this.
Cheers,
JD