简体   繁体   English

找不到Dcu文件

[英]Dcu file not found

i have a problem compiling my Delphi code. 编译我的Delphi代码时遇到问题。 I have 3 classes, XmlFileManager (concrete), XmlNodeManager (abstract), XmlEnpManager (child of XmlNodeManager and concrete). 我有3个类,XmlFileManager(具体),XmlNodeManager(抽象),XmlEnpManager(XmlNodeManager的子项和具体)。 Below, a little of definition class code: 下面,一些定义类代码:

XmlFileManager XmlFileManager

unit XmlFileManager;
interface
uses
  xmldom, XMLIntf, msxmldom, XMLDoc, SysUtils, DateUtils, Classes, Dialogs,
  XmlNodeManager, XmlEnpManager;
type
  TXmlFileManager = class
     [...]
  end;
[...]
end.

XmlNodeManager XmlNodeManager

unit XmlNodeManager;
interface
uses
  xmldom, XMLIntf, msxmldom, XMLDoc, SysUtils, DateUtils, Classes, Dialogs,
  XmlFileManager;
type
  TXmlNodeManager = class
     [...]
  end;
[...]
end.

XmlEnpManager XmlEnpManager

unit XmlEnpManager;

interface
uses
  xmldom, XMLIntf, msxmldom, XMLDoc, SysUtils, DateUtils, Classes, Dialogs,
  XmlFileManager,  XmlNodeManager;

type
  TXmlEnpManager = class (TXmlNodeManager)
      [...]
  end;
[...]
end.

In the XmlNodeManager and XmlEnpManager, not recognize TXmlFileManager class. 在XmlNodeManager和XmlEnpManager中,无法识别TXmlFileManager类。 An whe i compile, the compilation fails with message: 编译时,编译失败并显示消息:

[dcc32 Fatal Error] SiGAS.dpr(23): F1026 File not found: 'XmlManager.dcu' [dcc32致命错误] SiGAS.dpr(23):F1026找不到文件:'XmlManager.dcu'

In the past, the XmlFileManager was called XmlManager. 过去,XmlFileManager被称为XmlManager。 Any ideas ?. 有任何想法吗 ?。

My .dpr: 我的.dpr:

uses
  Forms,
  Main in 'forms\Main.pas' {Principal},
  Globals in 'units\Globals.pas',
  CrearProyectoForm in 'forms\CrearProyectoForm.pas' {NuevoProyecto},
  Validadores in 'units\Validadores.pas',
  IdiomaClass in 'units\IdiomaClass.pas',
  IdiomaCastellanoClass in 'units\IdiomaCastellanoClass.pas',
  ExcelFileManagerClass in 'units\ExcelFileManagerClass.pas',
  SeleccionarIdioma in 'forms\SeleccionarIdioma.pas' {SelectLang},
  EnpView in 'forms\EnpView.pas' {ENP},
  EnpViewGeneric in 'forms\EnpViewGeneric.pas' {EnpGeneric},
  Vcl.Themes,
  Vcl.Styles,
  EnpViewAdd in 'forms\EnpViewAdd.pas' {EnpAdd},
  EnpViewAddAfter in 'forms\EnpViewAddAfter.pas' {EnpAddAfter},
  EnpViewEdit in 'forms\EnpViewEdit.pas' {EnpEdit},
  EnpInicial in 'forms\EnpInicial.pas' {ENPViewInicial},
  XmlFileManager in 'units\XmlFileManager.pas',
  XmlNodeManager in 'units\XmlNodeManager.pas',
  XmlEnpManager in 'units\XmlEnpManager.pas';

Your main source file, SiGAS.dpr , still has it listed as XmlManager, so... 您的主要源文件SiGAS.dpr仍将其列为XmlManager,因此......

Open your *.dpr file (it is just Delphi code) and fix the unit name in the uses clause, then rebuild. 打开* .dpr文件(它只是Delphi代码)并在uses子句中修复单元名称,然后重建。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM