[DUG] Delphi 2007 ignores my search path

Steve Peacocke steve.peacocke at gmail.com
Wed Aug 29 11:12:31 NZST 2007


Hello Berend,

There may be several reasons you are getting these issues. You
mentioned "in projects" so I am assuming that you have created a
Delphi project and adding units (forms etc) to that project.

1. If you are talking about forms and uinits you created specifically
for that project then, have you actually added the form to the project
yourself instead of just adding them to the "uses" clause? If so, you
may need to open the form/unit and Add them to the project (Project
menu / Add to Project).

2. If you are talking about some tools or delphi units (e.g. SysUtils
etc), then what you are doing is correct by adding the path in
globally under tools/options.

assuming forms/units you created for THIS project...

3. in Delphi, select File/Close All, then select the
<projectname>.dsk; .cfg; and .dof files and delete them. then load the
project again. If you have moved or copied the project into another
directory, these files, especially the .dsk one, contain the paths to
the previous directory and will be trying to load from an older
directory - or worse, you may be updating forms and units in that
previous directory thinking you are updating the new ones.

4. Perhaps add the physical path to the unit name in the uses clause.
this is not recommended and is a very last resort while you are still
trying to find out what's happening. Actually forget this one. Bad.
bad. Leather winged creatures will be sent.

I hope that helps.

Steve
-- 
Steve Peacocke
http://stevepeacocke.blogspot.com/

On 29/08/07, Berend de Boer <berend at pobox.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Guys,
>
> Very weird problem with Delphi 2007. Delphi completely ignores the
> search path for units I set in projects.
>
> If I set them globally, under Tools|Options, I can find the units.
>
> The command-line compiler works fine.
>
> Any clues????????
>
> - --
> Cheers,
>
> Berend de Boer
>
>
> PS: This email has been digitally signed if you wonder what the strange
> characters are that your email client displays.
> PGP public key: http://www.pobox.com/~berend/berend-public-key.txt
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.3 (GNU/Linux)
> Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
>
> iD8DBQFG1Kc4IyuuaiRyjTYRAjadAJ9NSCtbP/AI6zK/fHPzhuJ/RMOC8ACfR5OR
> CKS3XfW1p93HY4k2T9GXTpg=
> =K83h
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject: unsubscribe
>


More information about the Delphi mailing list