wildzero
asked on
Fatal error at command line compile
Trying to compile a Delphi Project at the command line like so
dcc32 "C:\Program Files\Borland\Delphi7\Proj ects\x\x.d pr"
And I get the error
Borland Delphi for Win32 compiler version 18.0
Copyright (c) 1983,2005 Borland Software Corporation
C:\Program Files\Borland\Delphi7\Proj ects\x\x.d pr(44) Fatal: F2063 Could not compile used unit 'MainMenu.pas'
However this compile fine in the IDE.
:-/
dcc32 "C:\Program Files\Borland\Delphi7\Proj
And I get the error
Borland Delphi for Win32 compiler version 18.0
Copyright (c) 1983,2005 Borland Software Corporation
C:\Program Files\Borland\Delphi7\Proj
However this compile fine in the IDE.
:-/
when you get that error, you also get the compile errors for the mainmenu.pas you get that fatal error because there were already some compilation errors in that unit. so .. what are they?
The actual error will be displayed above this message, scroll the "output" box up (the white box at the bottom of the unit editor)
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
:P no worries.
Well what I done is moved my bat file from
SourceFolder\output
to
SourceFolder
and re-ran, and now I get a different error message so indeed it does seem to be something with the paths. As this compiles fine under the IDE I must have to specify in the command line my search paths - which is a bit of a bugger....
Well what I done is moved my bat file from
SourceFolder\output
to
SourceFolder
and re-ran, and now I get a different error message so indeed it does seem to be something with the paths. As this compiles fine under the IDE I must have to specify in the command line my search paths - which is a bit of a bugger....
is there a bcc commandline to specify an @browse list file or something?
(away from delphi atm, so cant check)
(away from delphi atm, so cant check)
ASKER
I htink you use the
-U paramater
will look in to it more..
-U paramater
will look in to it more..
the way I am doing the command line builds is that I set in the system path the path to dcc32. then I call
dcc32 project.dpr
this takes care of the "local" units, included in the project configuration search path
then, for anything not in the project configuration search path I add it to it (from the ide) (I like to keep my command lines clean :) )
dcc32 project.dpr
this takes care of the "local" units, included in the project configuration search path
then, for anything not in the project configuration search path I add it to it (from the ide) (I like to keep my command lines clean :) )
ASKER
HI there,
Yeap the local units arn't a problem - it's just the other units from other components that I need to get added in there
ie
Borland Delphi for Win32 compiler version 18.0
Copyright (c) 1983,2005 Borland Software Corporation
MainMenu.pas(7) Fatal: F1026 File not found: 'PdfLib_TLB.dcu'
Yeap the local units arn't a problem - it's just the other units from other components that I need to get added in there
ie
Borland Delphi for Win32 compiler version 18.0
Copyright (c) 1983,2005 Borland Software Corporation
MainMenu.pas(7) Fatal: F1026 File not found: 'PdfLib_TLB.dcu'
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi there :-)
Where does this file go :D
Where does this file go :D