Delphi Compiled Unit File (*.dcu)

From RAD Studio
Jump to: navigation, search

Go Up to File Types Index

When you build a Delphi project, RAD Studio generates a Delphi compiled unit (DCU) file for each unit in your project. You do not need to open these binary files or distribute them with your project.

A Delphi compiled unit file is an intermediate compiler output file produced from the source code of each unit in your project. Delphi compiled unit files enable rapid compiling and linking.

You can link a Delphi project to Delphi compiled unit files for any of the supported target platforms.

When you build your Delphi project, your Delphi compiled unit files are generated by default into C:\Users\<user>\Documents\Embarcadero\Studio\Projects\<project>\<platform>\<build configuration> with <unit>.dcu as file name.

Note: The DCU file must be in the same directory as the DLL file you are debugging, or in the debug symbols search path; if not, the debugger will not find the debug symbols. This is only applicable to Win32 and Win64 platforms. To change the DCU output directory, go to Project > Options > Delphi Compiler. To change the debug symbols search path, go to Project > Options > Debugger > Symbol Tables.

See Also