Article View: borland.public.delphi.commandlinetools
Article #405Re: Command line compiler problem
From: Ian Kirk
Date: Tue, 06 May 2003 14:20
Date: Tue, 06 May 2003 14:20
34 lines
2416 bytes
2416 bytes
"Mike Williams (TeamB)" <mikew@remove.aps-soft.com> wrote in message news:Xns93736788F56C0mikewteamb@207.105.83.65... > On 06 May 2003, "endre" <endrel@frogware.com> wrote: > > > 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? > > Create a file called DCC32.CFG. > > Inside of DCC32.CFG you can have lines like the following: > > /U$(DELPHI)\Lib;$(DELPHI)\Bin;$(DELPHI)\Imports;$(DELPHI)\Projects\Bpl ... > > if the /U line becomes too long you can actually use more than one. Also, if you need to include directories that aren't in the Delphi program area, how about using the good old DOS Subst command so that a long path can be accessed as a single drive letter. e.g. Subst N: "C:\Top Level\Then More Level\And A\Long Subtree" then you can use N:\File.pas rather than "C:\Top...\File.pas". You can add the Subst at the top of the build batch file, or in its own batch file within the Startup folder if you want it to be more widely available. HTH, Ian
Technical Details
Message-ID:
<3eb7c48f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3eb7c017$1@newsgroups.borland.com> <Xns93736788F56C0mikewteamb@207.105.83.65>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff8f1,97054c9fb2130630 X-Google-Attributes: gidff8f1,public X-Google-Thread: 109d30,97054c9fb2130630 X-Google-Attributes: gid109d30,public X-Google-ArrivalTime: 2003-05-06 07:24:36 PST From: "Ian Kirk" <ian@kel.deletethisbit.co.uk> Newsgroups: borland.public.delphi.commandlinetools,borland.public.delphi.language.objectpascal References: <3eb7c017$1@newsgroups.borland.com> <Xns93736788F56C0mikewteamb@207.105.83.65> Subject: Re: Command line compiler problem Date: Tue, 6 May 2003 15:20:47 +0100 Lines: 36 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 212.21.124.186 Message-ID: <3eb7c48f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1052230799 212.21.124.186 (6 May 2003 07:19:59 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail