如果是这样的话,建议你选BUILD你的应用程序,这样会确保DELPHI知道你新加入的单元被重新编译,生成新的DCU。

解决方案 »

  1.   

    应该是设置的问题,在delphi的 project/options  中的directoris/condition设一下应该就好了!
      

  2.   

    当我加入后F9运行,提示我是否add it,我就yes,但报错。
    [Error] main.pas(127): Undeclared identifier: 'bakform'
    [Fatal Error] bydt.dpr(7): Could not compile used unit 'main.pas'
    是不是需要把这句路径写详或者其它解决办法?谢谢
      bak in 'bak.pas' {bakform};
    我的bak.pas放的D;\hmis\目录下,其它的bydt.dpr及main.pas也的相同目录。
      

  3.   

    要在你的单元中使用bakform单元
    设置你的Project的options中bakform单元不为自动显示
      

  4.   

    在delphi主菜单的 project/options  
    中的directoris/condition
    中设置 search path
    可以加多个目录,每个查询目录之间用;隔开