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.
FastCode.pas compilation
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: FastCode.pas compilation
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
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
Re: FastCode.pas compilation
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
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
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: FastCode.pas compilation
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
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
Re: FastCode.pas compilation
@dalenegro,
One tip.
Open all forms in the project and save (there may have been changes in .dfm).
Michal
One tip.
Open all forms in the project and save (there may have been changes in .dfm).
Michal
Re: FastCode.pas compilation
Thanks Jan,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
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!
Re: FastCode.pas compilation
@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
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
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: FastCode.pas compilation
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:
Best regards,
Jan
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
Best regards,
Jan
Re: FastCode.pas compilation
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
Thank you so much and I very appreciate your immediate help with that!! Jiri