mmarvi
asked on
Delphi fatal error
I recently bought a brand-new copy of Delphi 4.0 Standard Edition, and to get started I tried to compile one of the sample programs. However, there was a build error - "Unit Forms was compiled with a different version of Math.Max". To get around this problem, I have to build all my programs using run-time packages, but I want them to be linked at build-time into my executable so that I don't have to distribute any run-time DLLs or BPLs. What is causing this problem?
ASKER
Where in the Delphi Super Pages can I find these patches?
Try to delete all .DCUs in your program path, as well as forms.* if there are any.
ASKER
When you say "program path", do you mean the path where the output files are created by the compiler, or something else?
Yes, or say the path where your projects' .pas file is located, depends on where Delphi put the generated DCUs.
Any way, try to find forms.dcu at you own directories(not the Delphi's VCL source path). If you can find any, delete them.
When deleting DCU files, make _sure_ that there are PAS files for them. If you didn't get the source code then there will be nothing to compile!!! Oooops, it is reinstall time...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Next time I'll always post my comment as answer :(
Hi , dwwang
:-) thats live...
:-) thats live...
Cheers,
Raymond.