I have a package that contains a lot of custom components. The source code
is stored in PackageDir/source and the dcu and bpl files are created and
stored in PackageDir/dcu. The DCU dir is in my library path, but the source
directory is not. When I try to compile a project that uses these
components, I get the following error for every component in the package
that has an associated form:
[Error] File not found: 'foo.DFM'
What in the world am I doing wrong? If I add the source directory to my
library path, of course the error goes away. But that doesn't really
leverage the power of a package. Any help would be greatly appreciated.
>If I add the source directory to my
>library path, of course the error goes away.
Right, because the compiler can thus find the code.
>But that doesn't really
>leverage the power of a package.
I am not sure what you mean by this.
Nick Hodges
TeamB
Either the source or the compiled dcu files need to be on the library path.
If a compatible dcu can be found, then it is just linked, otherwise it needs
the source to compile first.
--
Wayne Niddery - WinWright Consulting
RADBooks - http://members.home.net/wniddery/
Toronto Delphi Users Group - http://www.tdug.com/
>When I try to compile a project that uses these
>components, I get the following error for every component in the package
>that has an associated form:
>[Error] File not found: 'foo.DFM'
If you were to use a runtime package, you would need the package's DCP
file in your search path.
Because you are not using a runtime package for your components, you
need the units' DCU and associated DFM files in your search path. The
rules are the same as they've always been.
--
Ray Lischner, author of Delphi in a Nutshell (coming later this year)
http://www.bardware.com and http://www.tempest-sw.com