This major issue had me very concerned and puzzled, I had read where others
had to reinstall Delphi,
and this was something that I did not really want to do. So I ask some questions
in several places and
finally had a person give me information for what had happened to him, and in
my case, it was not the
same as his experience, but his information gave me a place to start.
And here is the information for you so that hopefully it will resolve the
issue with
" Cannot find system.pas "
If you have just installed a new package or packages, then this could happen
[Fatal Error] Project1.dpr(1): File not found: 'System.pas'
If this happens to you:
Scenario #1 = Check to make sure that the path going to the Components
is
Not to long, Delphi has a set Character Length in the Library, so make sure
that the path to your Packages are not too long. (This was not the case with
us, but with others)
Scenario #2 = If you have installed a new package, "Remove"
it from the
[Library Path] and then try to "Compile" a Project, that does not
have the
Newly installed components on it.
If you are able to compile then try adding in "Each Directory" to
the newly
Installed Components (IF there is more than 1 Directory) and on each added [Library
Path] try to compile, keep on doing this until you get the " cannot find
System.pas " Error again. It may happen on one of the folders, or on the
single folder path.
(This applies to multiple folders, and Single Folder)
Copy ALL " .dcu & .dfm & .res" Files from the New Component
Package Folder
into a folder of the Package Directory (This is only the New Components that
are
causing the Error, this is not all the components on your hard drive.). Point
the Library
path to this folder. This will get rid of the Error. & If you compile a
form with a component
on it that is from this library, and you get an error:
[Fatal Error] Unit1.pas(7): Unit DComponent was compiled
with a different version of DCustomComponent.DcustomComponent
Then you will need to point the library to a certain folder in the Package.
If you only have 1 Package and 1 Folder, then you can try to move a certain
.pas
File(s) into the New Folder that we created above, keeping track
of what you move.
So that if1 of them causes the Cannot find system.pas
issue, you can delete it out of the Folder.
(Only copy these files over, DO NOT move them over permanently. Keep the
original folder/file structure).
Scenario #2 = is what the problem was with mine. And exactly what I wrote
here,
Is how I got rid of my " Cannot find system.pas & VCL "
Major Issues.
Hope that this will also be the case for other's that may have the same problem
in the future.
From: Wayne Barron - Carrz-Fox-Fire Promotions
Problem happened on Sept. 11th 2004 was fixed Sept. 12th 2004
|