Delphi not able to find native units

From: M. Tettnanger (marktettnanger_at_hotmail.com)
Date: 02/28/04


Date: 28 Feb 2004 11:28:02 -0800

Suddenly when trying to build/compile my project I was getting
a "math.pas UNIT expected but end of file found". The editor
would then show a blank math.pas file. Some of my units do
have a Uses math statement, but this wasn't a problem
until today.

The problem is that Delphi was not looking for its own
native math unit, but was instead looking in my project
directory. In fact it created an empty math.pas file.
If I deleted it, it put another blank one in there and
raised the exception.

I was only able to solve it by adding /Delphi/lib to my
Search directory options so it could find the math.dcu
file. Is this correct or do I have some underlying problem?

Thanks,

Mark