• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 196
  • Last Modified:

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?
0
nasheerz
Asked:
nasheerz
  • 2
  • 2
1 Solution
 
ITugayCommented:
Hi nasheerz,

it can be located in uses clause of some unit in your project. Be carefull, uses clause may be twice in each unit: in interface and in implementation parts.

--------
Igor.
0
 
JDNCommented:
"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

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

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now