🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

DCC32 Problems

#196
From: fig000
Date: Thu, 31 Jul 2008 16:51
50 lines
3367 bytes
Hi,

   I've checked through the newsgroups and it seems that I'm another
newbie knocking his head against the wall with dcc32. Sorry if I'm
going over old ground but the many posts I've read and the delphi help
doesn't seem to show me the reason for my problem.

   I read somewhere that the options on the command line override all
options in the dcc32.cfg and the project config. To make this easier
on myself at the beginning, I'm using the command line to do a simple
compile from a dos bat file. I'm using Delphi 5. I'm compiling one
project and I'm getting one of the famous "Fatal: File not found
<name>.dcu" errors.

   The file that it can't find is in a different directory from my
project; it's a utility directory. I did put that utility directory
into the units list using the /uDirectory option. I also put them in
the include and resource list using /i and /r just in case (someone in
a post mentioned that might be an option).

   The error message mentions include file in the utility directory.
There isn't much information in that part of the message and the line
number it mentions is the last line in this include file so I think
this is sort of "fake" error. Then it mentions the main pas file in my
project and flags the first line in my uses clause. No surprise, the
first uses file mentioned in the clause is the "missing" dcu file.

   It seems to me that my use of the /u option is not working. I'll
mention a couple of things that might help:

   1. The path to the utility file has spaces in some of the
subdirectories. This is delphi 5 and I'm wondering if there is an
issue with that.
   2. In the ide  when compiling we have  problems with projects
looking for files that  none of the pas file have in their uses
clause. To remedy that we do a "build all projects". I put a /B into
this command line in the bat file to "hopefully" make the same thing
happen but no luck.

The command line looks like this when it's run from the dos command
prompt (all on one line):

dcc32 project.dpr /UC:\Company\Work Directory\Source\Util; /IC:\Company
\Work Directory\Source\Util; /RC:\Company\Work Directory\Source
\Util;  /B

   Any help would be appreciated.

Thanks,
Fig000
Technical Details
Message-ID: <25e79f9d-514d-45f4-a320-3880d0b92876@e53g2000hsa.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!e53g2000hsa.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: ff8f1,4c9adffcca12228a,start
X-Google-Attributes: gidff8f1,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!e53g2000hsa.googlegroups.com!not-for-mail
From: fig000 <neilnewton001@yahoo.com>
Newsgroups: borland.public.delphi.commandlinetools
Subject: DCC32 Problems
Date: Thu, 31 Jul 2008 09:51:08 -0700 (PDT)
Organization: http://groups.google.com
Lines: 50
Message-ID: <25e79f9d-514d-45f4-a320-3880d0b92876@e53g2000hsa.googlegroups.com>
NNTP-Posting-Host: 68.143.9.238
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1217523069 29593 127.0.0.1 (31 Jul 2008 16:51:09 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 31 Jul 2008 16:51:09 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: e53g2000hsa.googlegroups.com; posting-host=68.143.9.238; 
 posting-account=lIq2DAoAAABV8rFdH1dbi9mbsTnNvDq6
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 
 5.1),gzip(gfe),gzip(gfe)