开发者

Why does Delphi 2009 sometimes (more often that not) insist I build?

开发者 https://www.devze.com 2022-12-11 19:51 出处:网络
I have noticed that with Delphi 2009, I often get strange errors when compiling, such as recursive unit use, and sometimes just (seemingly) random errors which point to white space at the end of a uni

I have noticed that with Delphi 2009, I often get strange errors when compiling, such as recursive unit use, and sometimes just (seemingly) random errors which point to white space at the end of a unit.

These are not really errors, because a full build will fix any of the pro开发者_高级运维blems, and I can carry on. I suspect that generics have something to do with this. Now a Delphi build is very fast, but this is still frustrating. Delphi 2006 and Delphi 2007 did not do this, but then they didn't have generics.


Hard to tell without more details, but I would suspect some kind of confusion in one of the paths the compiler relies on to find the pas/dcus. Depending what has to be compiled, the order of the units found is not the same, or even the units are not necessary the good ones.

Do you have any modified Delphi unit?
Do you have a separate folder for the dcus?
Do you mix the source and compiled units folders in the paths?

0

精彩评论

暂无评论...
验证码 换一张
取 消