Solved

Fatal error: file not found somename.dcu

Posted on 2002-05-17
5
188 Views
Last Modified: 2010-04-04
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
Comment
Question by:nasheerz
  • 2
  • 2
5 Comments
 
LVL 9

Accepted Solution

by:
ITugay earned 100 total points
ID: 7015835
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
 
LVL 1

Expert Comment

by:JDN
ID: 7015887
"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
 

Author Comment

by:nasheerz
ID: 7016284
The file serveis.pas exists, I just added it to the project. And yes, my aplication needs the file.
0
 

Author Comment

by:nasheerz
ID: 7016397
Ups, u're right! Here you have your hard worked points. %)
0
 
LVL 9

Expert Comment

by:ITugay
ID: 7018044
thanx :-)
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question