Chris Stebbing wrote:
> I have what should be a simple question.... I'm migrating an app from D3 to 
> Delphi2005...  I don't have time to rework all units, and so want to 
> compile in some of pre-compiled object files from D3 into my D9 project.... 
> One such file is a file called TracksU.pas.
> 
> I have another unit which references this, like such
>          uses StrLib, TracksU;
> 
> I have put the TracksU.dcu file into a folder in the search path, as well 
> as into the "Unit output directory".
> 
> If I leave the TracksU in this line, then D9 complains that it can not 
> compile used unit "TracksU.pas".  If I take the TracksU out of this line, 
> it complains about unknown variables.... Surely there's a simple way to get 
> Delphi to link in that dcu file?

No. All DCU files, from the original Delphi through Delphi 2005, are 
version-specific. You cannot use a DCU with any compiler version other 
than the one that created it.

You shouldn't have to "rework" the units. Anything that compiled for you 
in version 3 should continue to compile for you now.

-- 
Rob
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to