🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.commandlinetools
Article #403

Command line compiler problem

#403
From: endre
Date: Tue, 06 May 2003 13:59
19 lines
2416 bytes
Hi there,
I have a problem using the command line compiler dcc32.exe for Delphi 5. The
whole problem comes from the fact that we're using a batch file for the
building process. I have a very long search path (it exceeds 1kB) dut to the
fact that we're using Perforce for source control, and Perforce "likes" it
better when the project structure is "mirrored" on the client machine. The
problem is that if you call dcc32 myproject.dpr /b, the information about
search path in myproject.cfg gets "truncated" at some point, and therefore,
if the project needs a unit located in a folder positioned after that limit,
the compilation fails with the message "unit (or .pas) not found." On the
other hand, the compilation in IDE runs OK. The only workaround I found is
to call dcc32.exe by passing the /U and /R parameters with the full search
path. Just that this is only working under Windows XP, because it looks like
Windows 2000 has a limitation for the length of the command line, and the
command fails with the message "command line too long." :(
The question is: is there a difference between the ways the IDE and dcc32
interpret the project's .cfg file (at least for Delphi5) ? Are there any
compiler options or directives that might help overcoming this problem?
Thank you in advance for any significant answer.
Technical Details
Message-ID: <3eb7c017$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!216.166.71.14.MISMATCH!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff8f1,97054c9fb2130630,start
X-Google-Attributes: gidff8f1,public
X-Google-Thread: 109d30,97054c9fb2130630,start
X-Google-Attributes: gid109d30,public
X-Google-ArrivalTime: 2003-05-06 07:04:01 PST
From: "endre" <endrel@frogware.com>
Newsgroups: borland.public.delphi.commandlinetools,borland.public.delphi.language.objectpascal
Subject: Command line compiler problem
Date: Tue, 6 May 2003 09:59:55 -0400
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 209.167.184.206
Message-ID: <3eb7c017$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1052229655 209.167.184.206 (6 May 2003 07:00:55 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!216.166.71.14.MISMATCH!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail