Delphi 10 Seatle Error When Compiling Rxlib

Asked

Viewed 138 times

2

Ambience:
Windows 10, Delphi Seatle 10
Rxlibrary (http://www.micrel.cz/RxLib/dfiles.htm)

I am trying to compile a system originally developed on D7 in Delphi Seatle and am getting the following error:

Unit RxDateUtil was compiled with a different version of myapp.RxStrUtils.MakeStr

Rxdateutil and Rxstrutils are lib (.pas) Units [Rxlibrary] (http://www.micrel.cz/RxLib/dfiles.htm), parece que, no processo de compilação, o Seatle gera um dcu com o nome da aplicação seguida do nome de units da lib, nesse caso "myapp.RxStrUtils.MakeStr", procurando na RxLibrary eu encontro RxUtils, mas não encontro nem RxStrUtils.MakeStr e nem somente MakeStr.

This error occurs in Unit Rxfileutil on the line:

uses{$IFNDEF VER80}{$IFDEF RX_D3}ActiveX, ComObj, ShlObj, {$ELSE}Ole2,
  OleAuto, {$ENDIF}{$ENDIF}RxDateUtil, ...

Looking for the network error, I found that link, that says more or less the following:

F2051: Unit %s was Compiled with a Different version of %s. %s (Delphi)
This error occurs when a symbol declaration on an interface is changed and the compiler cannot recompile the referenced Unit in that statement because the source is not available.

But you see, in my case, unit2 doesn’t even exist.

Another possible cause pointed out by the text is that the project may have a Unit with the same name as a Delphi Unit, then it would have to rename unit2, and change the references to it, in my case it would be myapp.RxStrUtils.Makestr, but how to do this if this Unit doesn’t even exist? or would I have to do this with Rxstrutils? but there is a Unit in Delphi Seatle with that name?

Does anyone use this lib with Delphi Seatle? Any tips?

1 answer

1


I managed to solve it this way. I removed all references(Components and Uses) of RXLib old and put the components of the new version of RXLib and I compiled everything and it worked.

  • really works bad is that of work...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.