Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

compile by using dcc32 in command line.

Status
Not open for further replies.

Nordlund

Programmer
Jul 17, 2001
458
SE
Hi folks.
I want to automate the build process by using the command line compiler. I'm able to compile some smaller projects, but when I try to compile the main application (about 200000 rows) I get strange error saying this class cannot be found etc, etc.
I must have forggotten something important...

When I compile it within Delphi, it works perfect.
"Does anyone know what I'm doing wrong? :)"

All the compiler switches are stored in the project .cfg file, does a tool exists that convert theese switches to correct command line switches?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-"There is always another way to solve it, but I prefer my way.
 
when using the command line compiler, paths are a big issue, forget one and your project won't compile.

don't know if such a tools exists (look on the net for drBob, maybe he has one)

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
Yep. I have checked the paths... THe main issue it that in one .pas file you have this declaration:

Code:
  FSortInfo: TSortInfo

and in another unit (in the same directory) you have the record defined:
Code:
type
  TSortMode = (smNone, smAscending, smDescending);

  TSortInfo = record
    FSortMode : TSortMode;
    FSortColumn : Integer;
  end;

The compiler stops att the FSortInfo row, and says that TSortInfo is undeclared...

(The uses in the .pas files are correct)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-"There is always another way to solve it, but I prefer my way.
 
Did you add "." (current directory) explicitly to the paths? It (dcc32) can be rather picky on that.

HTH
TonHu
 
No, I didn't really... I changed active directory by the DOS commando "CD" instead.

The main problem was that i didn't include the original Delphi libraries, only the extra installed libraries.

But why the h*ll does the comiler stop at the code a mentioned above, and not in the standard delhi units.

But it works now...!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-"There is always another way to solve it, but I prefer my way.
 
Ah, good you solved that mistery ;-)

"Why the h*ll..." : Borland goes it's mysterious ways...

HTH
TonHu
 
Yep, Borland is a little bit mysterious.
But What happens if have design compiled packages such as Abbrevia. Do I have to recompile them before I compile the project? What if I have added published properties in my own components. Does the compier take care if theese issues?


(The real reason I'm answering is the Lordi won the European song contest. The best song this year....) :)


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-"There is always another way to solve it, but I prefer my way.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top