|
Technical answers from the trenches |
|
Compilation Error: File Not Found
| ||||
Posted: 5 December 2000 |
||||
  |
Applies to: Delphi 4 and later |
|||
  |
Audience: Everyone |
|||
Question: When I compile my application, I get a "File Not Found" error, but the file in question exists and my Search Paths option points to the directory containing the file. What's going on and how do I fix it?Answer: Check the Project Manager to see if it includes a reference to the file in question. If so, make sure that reference points to the correct location. In most cases, it doesn't. If this is the case, try simply removing the file from the Project Manager. Because the directory is in your search path, Delphi should be able to find the next time you compile the project. Why this would happenWe usually enounter this particular problem after moving a project's source to a new directory structure. While not a typical situation, it does happen. For example, suppose:
Note: You can avoid this situation in the case of multiple developers by requiring each one to configure their systems similarly. We recommend against this, however, because there is a risk that the requirement would be seen as autocratic if the dictated configuration differs significantly from a developer's preferences. We prefer the recommended solution because it supports the widest range of development styles. In general, we prefer flexible solutions over restrictive ones. Your mileage may vary. |
|||
|
||||||||
|
Copyright © 2000-2004, techtricks.com; All Rights Reserved. Acknowledgements, Disclaimers, Terms and Conditions. |
||||||||
|
Article last updated on 31 May 2003
|
||
|
|
||
|
[- End -]
|