FastCode.pas compilation

The forum for ZeosLib 7.2 Report problems. Ask for help, post proposals for the new version and Zeoslib 7.2 features here. This is a forum that will be edited once the 7.2.x version goes into RC/stable!!

My personal intention for 7.2 is to speed up the internals as optimal a possible for all IDE's. Hope you can help?! Have fun with testing 7.2
Post Reply
delanegro
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: 14.06.2020, 23:55

FastCode.pas compilation

Post by delanegro »

Hi guys,
since I have already spent a lot of time so far by looking for the solution, this forum is my last chance :)
I have a project in Delphi 7 which ran on Win7 previously with ZEOSlib (I do not exactly the verison). The computer had to be formatted and now it is running on Win 10 and I am installing all the components back to Delphi and to the specific project. I have installed ZEOSLib 7.2.1 and after several compilation with errors and their corrections, I stucked with the following one and I have no idea what to do next. I attach the screen from the compilation. All the paths of the relevant ZEOSlib files are added in Delphi Environment. Any ideas please? Thank you so much..maybe one last info, when I start to comment all the error lines, it seems to be neverending process...Thanks again for any tips.
Image
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: FastCode.pas compilation

Post by marsupilami »

Hello Delanegro,

unfortunately youe screen shot didn't make it into the forms. You mentioned that you use Zeos 7.2.1 - if that number is correct, it is an really old version of Zeos. We have fixed quite some problems for older Delphis lately. It might make sense to use the current 7.2-patches branch from SVN directly.

Best regards,

Jan
delanegro
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: 14.06.2020, 23:55

Re: FastCode.pas compilation

Post by delanegro »

Hello Jan,
first thank you very much for your answer...unfortunatelly, I reinstalled ZeosDBO on version 7.2.6 stable but I am getting the exactly same results during compilation. I tried to create a new clean project and everythings is ok, even a connection to database is OK (my-sql5). However, when I open the old project, I see the errors. I don't know why it is happening. I guess, the previous used version of ZeosDBO on this project was from 2010 or something like that. Do you have any tips where to start an investigation? Should I post another screen for you or maybe some temporarily files are necessary to be deleted?!? Thanks Jiri
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: FastCode.pas compilation

Post by marsupilami »

Hello Jiri,

please post the error messages. Usually you can copy them from the messages window. If that doesn't work please try to upload a picture again.

Best regards,

Jan
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Re: FastCode.pas compilation

Post by miab3 »

@dalenegro,

One tip.
Open all forms in the project and save (there may have been changes in .dfm).

Michal
delanegro
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: 14.06.2020, 23:55

Re: FastCode.pas compilation

Post by delanegro »

marsupilami wrote: 15.06.2020, 19:09 Hello Jiri,

please post the error messages. Usually you can copy them from the messages window. If that doesn't work please try to upload a picture again.

Best regards,

Jan
Thanks Jan,
here are the error messages:

Build
[Error] ZFastCode.pas(284): Undeclared identifier: 'RawByteString'
[Error] ZFastCode.pas(301): Undeclared identifier: 'ZPPWideChar'
[Error] ZFastCode.pas(309): Undeclared identifier: 'ZWideString'
[Error] ZFastCode.pas(413): Identifier redeclared: 'Pos'
[Error] ZFastCode.pas(413): Undeclared identifier: 'LengthInt'
[Error] ZFastCode.pas(421): Identifier redeclared: 'PosEx'
[Error] ZFastCode.pas(2644): Undeclared identifier: 'ZSetString'
[Error] ZFastCode.pas(3197): Undeclared identifier: 'ZSetString'
[Error] ZFastCode.pas(3251): Undeclared identifier: 'ZSetString'
[Error] ZFastCode.pas(3281): Undeclared identifier: 'PUInt64'
[Error] ZFastCode.pas(3281): Pointer type required
[Error] ZFastCode.pas(3282): Pointer type required
[Error] ZFastCode.pas(3296): Operator not applicable to this operand type
[Error] ZFastCode.pas(3296): Pointer type required
[Error] ZFastCode.pas(3304): There is no overloaded version of 'CurrToUnicode' that can be called with these arguments
[Error] ZFastCode.pas(3305): Incompatible types
[Fatal Error] ZFastCode.pas(3305): System unit out of date or corrupted: missing '@FromPWCharLen'



To @miab3: Thanks a lot for the tip. My problem was not solved by opening all forms and saving them (about 300 forms...uff) however, I found several mistakes there caused by syncing and renaming files. So anyway, it definitely helped!
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Re: FastCode.pas compilation

Post by miab3 »

@dalanegro,

It looks like you are migrating from ZEOS 7.0.x.
Download updates for version 7.2 that is:
https://sourceforge.net/p/zeoslib/code- ... 2-patches/

Or cancel the upgrade and go back to 7.0.6-stable or:
https://sourceforge.net/p/zeoslib/code- ... 0-patches/

Michal
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: FastCode.pas compilation

Post by marsupilami »

Hello dalanegro,

these errors seem strange. It looks like Delphi tries to compile ZFastCode.pas against an oler version of some Zeos units. I suggest to remove old Zeos versions. Also make sure that the unit search path doesn't contain any paths pointing to old Zeos versions. Finally I suggest to remove all compiled files:
  • uninstall Zeos from Delphi - if not already done
  • remove all Z*.dcu, Z*.dcp and Z*.bpl files from your computer
  • reinstall Zeos in Delphi
I hope, this helps.

Best regards,

Jan
delanegro
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: 14.06.2020, 23:55

Re: FastCode.pas compilation

Post by delanegro »

Guys, you are the best!! Compilation process is now ok, I am getting "only" several errors (memory violations) but right after running, so that is my job now ;) Connection to database is OK. The problem was that I really had an older version in different folders...that was the rest of my several unsucessful attempts. At the end, I am running on 7.2.6.1 version.
Thank you so much and I very appreciate your immediate help with that!! Jiri
Post Reply