Reputation: 391326
We are using several component packages by different vendors, and two of them both have a "regexp.pas" unit available inside their directory structure.
Problem now is that regardless of the order we compile them in, one of them complains about the unit being compiled with the wrong version of various other units.
Is there any way to handle this correctly?
Upvotes: 2
Views: 1471
You can use this workaround.
As already told, you cannot load both vendor packages into the IDE together.
However, if you need them one at a time, you can start up two different IDE profiles using the "-r" command line switch, giving a custom name to each profile. Then, you could launch Delphi using the first profile, and install the first of the two "clashing" packages, close the IDE and run Delphi with the second profile, and install the other package.
Create a shortcut for each profile, and then run Delphi choosing the profile that loads the package you need to mantain a specific project.
Regards, ~/|/|arco.
Upvotes: 0
Reputation: 42152
No two units can have the same name in any fully linked and loaded Delphi executable, whether the units are statically linked or dynamically linked via packages. As you concluded, you'll have to rename one or the other.
Upvotes: 8
Reputation: 6508
Upvotes: 4