How to compile with DCC32 as in the IDE

Viewed 471

I'm trying to automate building of my project, using DCC32 to compile it.

The same project compiled in the IDE will compile OK, but when i call DCC32, i get the error below :

c:\myproject>dcc32 myproject.dpr
Embarcadero Delphi for Win32 compiler version 33.0
Copyright (c) 1983,2018 Embarcadero Technologies, Inc.
myproject.dpr(56) Fatal: F2613 Unit 'Forms' not found.

What should i do to DCC32 works exactly as the IDE compiler ?

1 Answers

I think you need to run rsvars.bat before your run dcc.

You can find it in $(BDSCOMMONDIR), which for me is C:\Program Files x86\Embarcadero\Studio\17.0\bin\rsvars.bat

This sets the relevant environment variables so that dcc can pick up the references it requires.

Related