Questions tagged [dcu]

In the Delphi domain, `DCU` stands for Delphi Compiled Unit. A `DCU` is a persistent file used by the Delphi compiler.

In the Delphi domain, DCU stands for Delphi Compiled Unit. A DCU is a persistent file used by the Delphi compiler.

A DCU file is an intermediate file format between the source code contained in a Delphi unit and the object files used during the linking of a program. It's automatically generated by the compiler.

As this file is persistent, it's one of the keys of the Delphi compiler speed. It avoids, during a simple compilation, to recompile all the units used by a project (including the packages). To force a full compilation, the user has rather, according to the Delphi IDE dialect, to build a project, which regenerates each DCU even if they have already been precompiled in a DCU.

25 questions
1
vote
1 answer

Using JVCL's debug DCUs with C++Builder

How do I debug JVCL code using C++Builder? I enabled building debug DCUs when I installed JVCL, I turned on "use debug DCUs" under my project's Delphi settings (there doesn't appear to be an analogous option under C++ settings), and I disabled…
Josh Kelley
  • 56,064
  • 19
  • 146
  • 246
1
vote
1 answer

How to debug DCU in Borland Delphi 2006?

I use Borland Delphi 2006 (folder name: C:\Program files\borland\BDS\4.0), and I want to enable debug DCUs. Where can I find this option? in tools->options->debugger options it doesn't exist. Note: I have also Embarcadero developer studio, but I…
Aharon
  • 117
  • 1
  • 1
  • 14
0
votes
1 answer

Delpi packages: should I include source directory in "Tools - Options - Language - Delphi - Library - Library path" and recompile *.dcu each time?

I am migrating from Delphi 2009 to Delphi 10.4 Sydney and I am updating the convention that I will use for the organization of my Delphi custom packages. To see how the things should work in Delphi 10.4 Sydney, I installed 'LockBox2-2021.05-Sydney'…
TomR
  • 2,696
  • 6
  • 34
  • 87
0
votes
2 answers

Delphi : .dcu not found, but code works on another computer

I have been working on a Delphi code, which works on my computer (computer A). I'm trying to execute the same code on another computer (computer B). So I went to that computer B, got the Delphi code via SVN, and tried building. But I got the error…
0
votes
1 answer

Is it possible to strip Debug Information from DCUs?

I am using free embedded NexusDB from GetIt which comes without sources, only .DCUs However, these DCUs has debug info in them, which hamper debugging a lot, i.e. when I try to Step Into (F7) my code, IDE often prompts me about source file location…
0
votes
0 answers

how to proceed delphi 7 compilation without pas

I have project where is missing 1 pas file. But I have this file .dcu It is possible to use 1 .dcu and other .pas files to compilation of new version?
0
votes
0 answers

Delphi 10 Seattle - little change in unit then all dcu file are recompiled

I have large project written in XE3 (about 2200 units). I did update IDE Delphi XE3 to Delphi 10 Seattle. When I adds or deletes methods in any unit (without form, without dfm) and I want running (F9), all units of project are compiling, this…
jagro
  • 1
  • 2
-1
votes
1 answer

I have .DCU but not .PAS

I am migrating some software from Delphi 6 to RAD 10.3. I have a line of code that I am receiving an error on and am not really sure how to resolve it. The line is: uses LMDSpeedButton, ExtCtrls, StdCtrls, LMDEdit,ovcsf, Forms,…
-2
votes
1 answer

After installation Delphi 2010 can not find component's dcu files which are used in the project?

I finished a project years ago. Now i want to improve it. Thus i install the components which were used before in the project. But when i run the project it gives an error. compiler can not find dcu files of some component objects. How can i fix it…
-3
votes
2 answers

How do I view DCU files as forms

Is there any way I can view a DCU file as a form?
Icarus
  • 19
1
2