Article View: borland.public.delphi.commandlinetools
Article #121Re: DCC32 + Defines
From: Mitch
Date: Wed, 08 Mar 2006 15:33
Date: Wed, 08 Mar 2006 15:33
84 lines
3470 bytes
3470 bytes
Jesper Hogstrom (Borland) wrote: > Mitch wrote: > >>> How does your various config files look? What if you compile with >>> --no-config, are the defines still set? > > >> I don't think it would compile at all without the config. The config >> is fairly large with all the paths to units and libraries that I >> needed. I need to go back and remove some extra path stuff that really >> isn't needed. I used the IDE generated CFG as the starting point and >> added path stuff until it would compile. I could post it if you really >> want to take a look. I should have mentioned that I'm using D7 Pro. > > > > Ah, no --no-config then. Well, there is another cfg-gile sitting next to > the compiler, called dcc32.cfg iirc. Maybe some define snuck in there? I > know I have been bitten by that once or twice (until they finally handed > me the --no-config :) ). > > Are you compiling using a make script or something equivalent? You may > want to consider passing everthing on the command line. That would also > make it simpler to create a debug build and a release build, as you > simple redfine the macros with the compiler switches. > > --Jesper Ah, that explains a bit of my confusion over your config questions. I've never changed the dcc32.cfg (this is my first try at automating the build process) but took a look in there just in case, nada. I'm running dcc32 from a batch file to keep it simple. Here's a section of my batch (pretty simple) and my CFG minus the paths. I don't do any defines within my code, I searched. I'm sure it will be obvious once its figured out. rem compile ReportWorks2006 rem =============================== cd c:\rockware\reportworks2006\source "C:\Program Files\Borland\Delphi7\Bin\dcc32" reportworks2006.dpr >> c:\rockware\rockworks2006\RW_compile.txt -$A8 -$B- -$C- -$D+ -$E- -$F- -$G+ -$H+ -$I+ -$J- -$K- -$L+ -$M- -$N+ -$O+ -$P+ -$Q- -$R- -$S- -$T- -$U- -$V+ -$W- -$X+ -$Y- -$Z1 -B -GD -cg -AWinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE; -H+ -W+ -$M16384,1048576 -K$00400000 -DmadExcept;REPORTWORKS -E"Z:\RockWare\ReportWorks2006" -N"Z:\RockWare\ReportWorks2006\DCUS" <clipped the paths - just too messy> -LE"c:\program files\borland\delphi7\Projects\Bpl" -LN"c:\program files\borland\delphi7\Projects\Bpl" -DREPORTWORKS;madExcept
Technical Details
Message-ID:
<440ef94e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<440dc747$1@newsgroups.borland.com> <440e079d$1@newsgroups.borland.com> <440e0b97$1@newsgroups.borland.com> <440e0d2c$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: ff8f1,cef2d0d351fc6255 X-Google-Attributes: gidff8f1,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 08 Mar 2006 08:33:36 -0700 From: Mitch <mitch.ABB@rockware.com> User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.delphi.commandlinetools Subject: Re: DCC32 + Defines References: <440dc747$1@newsgroups.borland.com> <440e079d$1@newsgroups.borland.com> <440e0b97$1@newsgroups.borland.com> <440e0d2c$1@newsgroups.borland.com> In-Reply-To: <440e0d2c$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 72.16.142.180 Message-ID: <440ef94e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1141832014 72.16.142.180 (8 Mar 2006 07:33:34 -0700) Lines: 92 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail