The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,380 other followers

[dcc32 Fatal Error] MyProject.dpr(23): F2051 Unit GUITestRunner was compiled with a different version of DUnitX.TestFramework.ITest

Posted by jpluimers on 2018/06/12

If you ever get an error like these in Delphi XE8 and up

[dcc32 Fatal Error] MyProject.dpr(23): F2051 Unit GUITestRunner was compiled with a different version of DUnitX.TestFramework.ITest
[dcc32 Fatal Error] MyProject.dpr(23): F2051 Unit TextTestRunner was compiled with a different version of DUnitX.TestFramework.ITestListener

then you are likely your project is:

  • using a DUnit based test project in Delphi
  • not having the unit search paths defined

Solution:

  1. add this directory to your project search path: $(BDS)\source\DUnit\src
  2. ensure your project DCU output directory is writable

–jeroen

One Response to “[dcc32 Fatal Error] MyProject.dpr(23): F2051 Unit GUITestRunner was compiled with a different version of DUnitX.TestFramework.ITest”

  1. edwinyzh said

    Jeroen, you should ask my SO question (https://stackoverflow.com/questions/47322941/strange-unit-version-error-is-dunitx-depending-on-dunit-or-the-other-way-aroun) :D

    Although after re-install delphi the issue has gone, but I guess your solution is relevant.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

 
%d bloggers like this: