简体   繁体   English

奇怪的单元版本错误-DUnitX是依赖于DUnit还是相反?

[英]Strange unit version error - Is DUnitX depending on DUnit or the other way around?

I was using Delphi xe4 to compile https://github.com/hprose/hprose-delphi/blob/master/Test/HproseTest.dpr 我正在使用Delphi xe4编译https://github.com/hprose/hprose-delphi/blob/master/Test/HproseTest.dpr

And got the following error which I spent tens of minutes and still couldn't figure out why. 并得到了以下错误,我花了数十分钟而仍然不知道为什么。

I've tried deleting all 'DUnitX*.dcu" and compile again, with no luck. 尝试删除所有'DUnitX * .dcu'并再次编译,但没有运气。

What puzzled me is that, why the unit TextTestRunner from DUnit (born first) relies on a unit from DUnitX which was born later? 令我感到困惑的是,为什么DUnit (首先出生)的单元TextTestRunner依赖DUnitX中后来出生的单元?

Any hint? 有什么提示吗? Thanks. 谢谢。

[dcc32 Fatal Error] HproseTest.dpr(37): F2051 Unit TextTestRunner was compiled with a different version of DUnitX.TestFramework.ITestListener

And here is the screenshot I made for making the problem description clear: 这是我为清楚说明问题而制作的屏幕截图: 在此处输入图片说明

I downloaded the repository and it was compiling on the first try but i only have Delph XE8. 我下载了存储库,并在第一次尝试时进行了编译,但是我只有Delph XE8。 But i found out that there is a unit called TestFramework.pas in DUnit and DUnitX. 但是我发现DUnit和DUnitX中有一个名为TestFramework.pas的单元。 While TextTestRunner relies on DUnit, it can only find DUnitX's unit. 虽然TextTestRunner依赖DUnit,但只能找到DUnitX的单位。 So, I think you should check your Delphi librarypath. 因此,我认为您应该检查您的Delphi库路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM