Questions tagged [dcc32]

The command-line compiler provided to build Delphi applications.

DCC32.EXE is the Delphi (Object Pascal) command line compiler.

Variant:

The Delphi (Object Pascal) command line compiler for 32-bit Windows is DCC32.exe.
The Delphi cross compiler for 64-bit Windows is DCC64.exe.
The Delphi cross compiler for Mac OS X is DCCOSX.exe.

More info on the official Embarcadero wiki: http://docwiki.embarcadero.com/RADStudio/XE2/en/DCC32.EXE,_the_Delphi_Command_Line_Compiler

34 questions
9
votes
4 answers

Delphi XE2: Fail using dcc32.exe to compile a simple program

After install Delphi XE2, I try command line compiler dcc32.exe to compile a simple program: program test; uses SysUtils; begin end. The command line compiler show me error: c:> dcc32.exe test.dpr Embarcadero Delphi for Win32 compiler…
Chau Chee Yang
  • 18,422
  • 16
  • 68
  • 132
9
votes
5 answers

How can I get MSBuild to do a full build of a Delphi project equivalent to dcc32 -b?

How can I get MSBuild to do a full build of a Delphi project equivalent to dcc32 -b? I've got two projects I'm trying to build, the first one uses some conditional defines, which are getting passed via msbuild to the dcc32. However, some common…
Zartog
  • 1,906
  • 1
  • 16
  • 27
7
votes
3 answers

IDE compiles successfully, but dcc32 writes: Error: E2010 Incompatible types: 'Integer' and 'NativeInt'

Delphi XE2 Update 3 IDE compiles the project successfully, but dcc32.exe writes: Embarcadero Delphi for Win32 compiler version 22.0 Copyright (c) 1983,2010 Embarcadero Technologies, Inc. ehshelprouter.pas(137) Error: E2010 Incompatible types:…
Dmitry
  • 14,306
  • 23
  • 105
  • 189
6
votes
1 answer

Is there a way to turn off the quiet mode in DCC32 called by MSBuild?

By default, the DCC32 compiler is called with the -Q switch that turns the quiet mode on. Is there a way to disable this switch in the .dproj file or by a command line parameter? I use msbuild for the build automation in my Delphi project.…
Bartek
  • 169
  • 9
6
votes
2 answers

Configure MSBuild to call XE2 dcc32.exe

I have both Delphi 2010 and XE2 installed on my machine (Windows 7, 64bits). I use FinalBuilder 5.5 to build my Delphi projects, which calls DCC32.exe to do a full build. Now that I upgraded my project from Delphi 2010 to XE2, I'm facing this issue:…
TheDude
  • 3,045
  • 4
  • 46
  • 95
6
votes
1 answer

Will the dcc32.exe compiler use project build configuration file when is called with --no-config parameter?

Problem description: Consider the following command line call (called for Delphi 2009 compiler): dcc32.exe --no-config --peflags:1 Project.dpr Will this call use the Project.dproj or Project.dof configuration files ? If yes, will the command line…
TLama
  • 75,147
  • 17
  • 214
  • 392
5
votes
2 answers

DCC32 compiler configuration file and command line parameter precedence

I am trying to build first time my Delphi application through command line using DCC32. I have few doubts regarding the configuration file of my project. There are some search paths I have to add to project when compiling through IDE. When I remove…
Nalu
  • 1,107
  • 4
  • 20
  • 43
4
votes
5 answers

Delphi command line compiler - using same library path as the IDE

Is there a way to instruct DCC32 to use the same library path that is used by the IDE (i.e. in Tools/Options/Environment Options/Delphi Options/Library - Win32)? For obvious reasons, I do not want to maintain two lists of directories (one in a cfg…
kes
  • 5,983
  • 8
  • 41
  • 69
3
votes
2 answers

Blank lines instead of a task console output in MSBuild

My product is being migrated from Delphi 6 to the newer Delphi XE3. The Delphi 6 compiler used to output list of files that were compiled to an executable: Borland Delphi Version 14.0 Copyright (c) 1983,2002 Borland Software…
Bartek
  • 169
  • 9
3
votes
2 answers

Is there a way to force the Delphi command line compiler to output English text?

Delphi comes localized in various languages (English, Japanese, German, French I think). The command line compiler (dcc32) also has been localized so the German version writes "Fehler" rather than "Error" and "Warnung" rather than "Warning" to the…
dummzeuch
  • 10,975
  • 4
  • 51
  • 158
3
votes
3 answers

Is there a DCC32.exe command line switch to make it use/create .dcu files?

When compiling a Delphi project calling DCC32.EXE from a script, no .dcu files are generated. Is there a command-line switch (or .cfg setting) to make the compiler create dcu's? Will the compiler then also check the .pas file and re-create the .dcu…
Stijn Sanders
  • 35,982
  • 11
  • 45
  • 67
2
votes
2 answers

Is there dcc32.exe in RAD Studio XE2? Error: This version of the product does not support command line compiling

Is there dcc32.exe in RAD Studio XE2? When run get error: This version of the product does not support command line compiling.
Dmitry
  • 14,306
  • 23
  • 105
  • 189
2
votes
1 answer

What is the difference between the -i and -u parameters to the dcc command-line compilers?

What exactly is the -i option of the Delphi dcc command-line compilers (dcc32.exe, dcc64.exe, dcclinux64.exe and others)? As opposed to -u? Help just states this briefly (and Embarcadero documentation does not seem to expand upon the subject): …
Matthias B
  • 404
  • 4
  • 11
2
votes
1 answer

[dcc32 Fatal Error]: F2084 Internal Error: NC1921

I'm trying to compile the following code in Delphi Rio: unit untObjectHelper; interface uses SysUtils; type TObjectHelper = class(TInterfacedObject) public class procedure Clone(const objOrigem: TObject; const objDestino:…
Passella
  • 640
  • 1
  • 8
  • 23
2
votes
1 answer

Accessing Delphi method pointers from another unit in another package when compiling with 'dcc32 -JL'

This is a bit complicated scenario - and even more complicated in practice, but I managed to minimize it for this question. I have defined two Delphi packages: BasePackage.dpk and AnotherPackage.dpk package BasePackage; requires rtl; contains …
Jouni Aro
  • 2,099
  • 14
  • 30
1
2 3