title: Delphi 2010 - package problem, File not found error
body: <p>I have a problem with a application with plugins. Originally, everything was compiled into a single exe, but now, I want to take out some of the code into a bpl on its own. The code that is shared by both the exe and the new bpl is put into a third bpl. </p>
  
  <p>application.exe is compiled with package api.bpl
  api.bpl contains only one file, api.pas
  plugin.bpl requires api.bpl.</p>
  
  <p>I have the following structure on disk:</p>
  
  <p>.\        - final output for exe and bpls<br>
  .\src     - sourcefiles for application.exe and api.bpl, including shared api.pas<br>
  .\dcu     - dcu output for all projects<br>
  .\plugin  - plugin source</p>
  
  <p>I can compile application.exe without a problem.<br>
  I can compile api.bpl without a problem.<br>
  But when I try to compile plugin.bpl, it tries to build api.bpl first, an then it complains that it can't find api.pas.</p>
  
  <p>Why is that?</p>