Article View: borland.public.delphi.commandlinetools
Article #402Re: Command line compiler problem
From: endre
Date: Tue, 06 May 2003 14:24
Date: Tue, 06 May 2003 14:24
48 lines
2948 bytes
2948 bytes
We already use a subst to map the "root" path to our project. The problem is that in the search path we use relative paths (like ..\..\..\output, and so on) so that we can move the project wherever we want and still compile without any changes. We will try the dcc32.cfg solution. Thanks for your answers. "Ian Kirk" <ian@kel.deletethisbit.co.uk> wrote in message news:3eb7c48f@newsgroups.borland.com... > "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:
<3eb7c5d8$1@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!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3eb7c017$1@newsgroups.borland.com> <Xns93736788F56C0mikewteamb@207.105.83.65> <3eb7c48f@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109d30,97054c9fb2130630 X-Google-Attributes: gid109d30,public X-Google-Thread: ff8f1,97054c9fb2130630 X-Google-Attributes: gidff8f1,public X-Google-ArrivalTime: 2003-05-06 07:36:08 PST From: "endre" <endrel@frogware.com> Newsgroups: borland.public.delphi.commandlinetools,borland.public.delphi.language.objectpascal References: <3eb7c017$1@newsgroups.borland.com> <Xns93736788F56C0mikewteamb@207.105.83.65> <3eb7c48f@newsgroups.borland.com> Subject: Re: Command line compiler problem Date: Tue, 6 May 2003 10:24:27 -0400 Lines: 50 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: <3eb7c5d8$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1052231128 209.167.184.206 (6 May 2003 07:25:28 -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!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail