🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.commandlinetools
2 messages
2 total messages Started by Alf Beford Thu, 08 Nov 2007 20:25
DCC32 "File not found: <name>.dcu"
#163
Author: Alf Beford
Date: Thu, 08 Nov 2007 20:25
60 lines
3917 bytes
Hello: using Delphi 6 Ent

I gather from searching via Google Groups that this is a bit of a recurring problem. Unfortunately many of those past threads ended
without resolution, so I'm here to ask about this again.
I recently decided to start compiling my application from the command line via a batch file to make things easier. I've added a
DCC32.CFG file to my project directory, but as soon as DCC32.EXE is invoked I get an error:

Fatal: File not found: 'FastMM4.dcu'

FastMM is the first entry in the uses clause of my project file, the first few lines of which look like:

{$I Defines.inc}
program Project1;

uses
  FastMM4,
  Forms,
  Controls,
  SysUtils,
...

In an attempt to fix the problem I've reduced the "Unit directories" switch values down to *just* the folder path that contains
FastMM.pas, so my DCC32.CFG file looks like:

-U"C:\Program Files\Borland\Delphi6\Source\MemManagers\FastMM"
-AWinTypes=Windows;WinProcs=Windows;DbiProcs=BDE;DbiTypes=BDE;DbiErrs=BDE
-B
-GD
-LE"C:\Program Files\Borland\Delphi6\Projects\Bpl"
-LN"C:\Program Files\Borland\Delphi6\Projects\Bpl"
-$O+

I've verified by copying the path into the Explorer Address bar that the directory for FastMM is correct. I've also tried these
variations:

/U"C:\Program Files\Borland\Delphi6\Source\MemManagers\FastMM"
-UC:\Program Files\Borland\Delphi6\Source\MemManagers\FastMM
-U"$(DELPHI)\Source\MemManagers\FastMM"
-U$(DELPHI)\Source\MemManagers\FastMM
-UC:\Progra~1\Borland\Delphi6\Source\MemManagers\FastMM
-U"C:\Progra~1\Borland\Delphi6\Source\MemManagers\FastMM"

None of which made any difference. If I copy the FastMM4.dcu file from that directory to my project folder, the error goes away. If
I start a fresh application, add FastMM to the project uses clause and compile it from the command line I get the same error.
HOWEVER, if I create a DCC32.CFG file for that new project, add the -U switch with the SAME path then compile, the error goes away.
Just to be certain I've even tried copying the path from that working DCC32.CFG file back to my original project DCC32.CFG file and
adding it - but I still get the missing DCU error for that project.

I'm at a loss. I don't know whether it might be something to do with over-long path names, I've come up against that before (which
usually leads to a cryptic 'missing system.pas' error), but I don't know *where* the DCC32.EXE compiler is seeing them if that's the
case. Before attempting to compile I ensure there is no Project1.CFG file in the project directory, so it can't be from there. The
DCC32.CFG file in the Delphi6\bin directory only contains two entries:

-aWinTypes=Windows;WinProcs=Windows;DbiProcs=BDE;DbiTypes=BDE;DbiErrs=BDE
-u"C:\Program Files\Borland\Delphi6\lib"

...so it can't be anything to do with that either. The project DOES compile perfectly from the IDE. Does anyone have any
suggestions, because I've tried everything I can think of and it's really starting to get very frustrating.

Many thanks in advance.
Re: DCC32 "File not found: <name>.dcu"
#164
Author: Alf Beford
Date: Fri, 09 Nov 2007 15:38
11 lines
1389 bytes
Oh this is very embarrassing: I'd neglected to change directory in my batch file to the project folder before calling DCC32. By
adding "cd\<project folder path>" to the batch file immediately before invoking DCC32, the problem goes away.

"Alf Beford" <AB@Home.com> wrote in message news:47336c77$1@newsgroups.borland.com...
> Hello: using Delphi 6 Ent
>
> I gather from searching via Google Groups that this is a bit of a recurring problem. Unfortunately many of those past threads
ended
> without resolution, so I'm here to ask about this again.

[snip]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads