How to build a command line using Delphi 7?

I am trying to create a delphi project from the command line compiler

Example: C: \ dcc32 -BC: \ BD \ Delphi7 \ work \ MyProject.dpr

In addition to the standard deviation:

$ (DELPHI) \ Bin; $ (DELPHI) \ Lib; $ (DELPHI) \ Import; $ (DELPHI) \ Projects \ BPL; $ (DELPHI) \ Rave5 \ Lib;

there are about 50 other paths to other libraries, components, etc.

How can I package all this and point to them for use in the commanline options to create my assembly?

When I ran the example above

C: \ dcc32 -BC: \ BD \ Delphi7 \ work \ MyProject.dpr

I get FATAL: File not found: 'file name here'

thanks

+6
delphi delphi-7
source share
3 answers

In Delphi 7, you need to edit the dcc32.cfg file (in the bin folder of Delphi). You need to copy the library path from the IDE and put it in the dcc32.cfg file. You should add it 4 times for different command line options, for example:

-u=path -i=path -r=path -o=path 

There are 4, I think. I did not do this after a few years, so I hope that the information is correct. Of course, the command line compiler does not use the same path storage location as the IDE does.

+7
source share

I do not think that dcc32.exe is stored in C:\ , if you install Delphi is actually not in order, or you only transferred the dcc32.exe file.

We recommend using dcc32.exe from the directory in which its installation of Delphi was installed. The Delphi directory is highly dependent on the version of Delphi, but for versions of Delphi op to 7 it looks something like this:

 C:\Program Files\Borland\Delphi7\bin\dcc32.exe 
0
source share

For later versions of Delphi, this should be changed to:

"C: \ Program Files (x86) \ Embarcadero \ RAD Studio \ 8.0 \ bin \ DCC32.exe" -h

0
source share

All Articles