D5 Std: can't compile

hi!

Every time I want to compile a project D5 says that unit "Forms" was compiled with a different version of "Math.Max" (whatever that is).

What can I do ?

Thanks.
Heiko.
webersAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TheNeilCommented:
Have you installed any components?

First suggestion would be to go back to your Delphi 5 CD and either re-install or copy across the forms.dcu file and the forms.pas file. forms.dcu needs to go into your Delphi5\lib and Delphi5\lib\debug folders. The .pas file needs to go into your Delphi5\source\vcl folder.

Basically the forms unit has been screwed and what this does is to restore the factory standard one. If this sodesn't work then you've got a component installed that isn't Delphi 5 compatible so check any that aren't and get onto whoever you got them from.

The Neil
0
MadshiCommented:
Strange this is that you have the standard version. There are no sources shipped with that version. So I would recommand searching your whole harddisk for "forms.dcu". Please report us about the results of this search.

Regards, Madshi.
0
TheNeilCommented:
Doesn't the standard version ship with the source files? Didn't realise. Surely Inprise in their infinite wisdom put a duplicate of the installation directory on the install CD? Sure they always used to. If so then Heiko just needs to get the DCU (if that's all there is) from there

The Neil
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

MadshiCommented:
Yes, the standard version doesn't include the sources. Hmmm... I see two possible reasons for Heiko's problem. (1) The dcu was somehow overwritten with a wrong version. (2) There's another forms.dcu version somewhere in another path (perhaps linked into the project by a special component).
I think you were thinking of the first possibility, I was thinking of the second one...   :-)

Regards, Madshi.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TheNeilCommented:
Just went for the first idea that popped into my head. Yep, a file with the same name somewhere in the search path COULD be the problem. Both are valid and both are easy to check

The Neil
0
webersAuthor Commented:
another forms.dcu ! that's the solution
D3 is still installed.

Thanks.
Heiko.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.