Link to home
Start Free TrialLog in
Avatar of nasheerz
nasheerz

asked on

Fatal error: file not found somename.dcu

When I'm compiling my project, it says "[Fatal error] Project.dpr(9): File not found: 'somename.dcu'". Where somename.dcu belongs to a form which I had removed from the project some months ago using de '-' button of the Delphi 6 Pro toolbar.

It gives this error in the Project.dpr file in a line of the uses Forms clause:

uses
  Forms,
  Principal in 'Principal.pas' {FPrincipal},
  ModulDades in 'ModulDades.pas' {FModulDades: TDataModule},
  Secundari in 'Secundari.pas' {FSecundari},
  Inicialitza in 'Inicialitza.pas' {FInicialitza},
  Serveis in 'Serveis.pas' {FServeis}; //<-error here

If I remove Serveis.pas from the project, the error is fixed, but this is not a solution.

I have done a search of any reference to this file in almost any file of the project and can't find it.

How can I erase that insidious reference? Where can it be located?
ASKER CERTIFIED SOLUTION
Avatar of Igor UL7AAjr
Igor UL7AAjr
Flag of Kazakhstan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JDN
JDN

"If I remove Serveis.pas from the project, the error is fixed, but this is not a solution."

Why not?

Does the file Serveis.pas exists? And does your program needs this file? If not, delete the reference.

JDN

Avatar of nasheerz

ASKER

The file serveis.pas exists, I just added it to the project. And yes, my aplication needs the file.
Ups, u're right! Here you have your hard worked points. %)
thanx :-)