Shouldn't this work?

Shouldn't this work?

I have a component which includes unit A (version 1) and I created the dcu's. Then in a project that uses the DCUs of component, if I add unit A and modify it to, should't I expect the project to compile?

I get an error that the component uses classes from unit A which were compiled using different version of Delphi.

Thanks

Comments

  1. "if I add unit A and modify it to, should't I expect the project to compile"

    Depends. If you modify only the implementation part of UnitA it will probably compile. If you touch the interface section, it will probably fail with the same error message "unit B was compiled with a different version of unit A bla bla bla"

    ReplyDelete
  2. In my opinion it boils down to --"different version "

    ReplyDelete

Post a Comment