🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.commandlinetools
3 messages
3 total messages Started by Olivier Pons Wed, 11 Oct 2006 11:36
gcc options
#22
Author: Olivier Pons
Date: Wed, 11 Oct 2006 11:36
67 lines
4521 bytes
Jesper, I followed you recommandations, so here's what I've done :
- I cheched Tools | Options | Environment Options | [x] Shw Command line
- I saved the output on my desktop, cut & paste it into a file named 
Optimise.txt
- I made a batch consisting of one line : "C:\Program 
Files\Borland\BDS\4.0\Bin\make" -B -fOptimise.txt
- It didn't work until I added a switch ("-") to every single option 
beginning with $ (eg $A8 => -$A8)
- The problem was "unknow option -C0 so I removed this option
- Now there's a problem I can't solve : everything is in a folder with a 
long name, and a space in it : "C:\Olivier\Sources\Sources olivier\Acarat". 
So when I call make the error is :
Fatal: F1026 File not found : 'olivier\Acarat\.dpr'

Any idea of how to solve it (except renaming my dir into a stone-age short 8 
chars name) ?

Thanks a lot.

BTW here's my makefile :

Acarat.exe: Acarat.dpr
  dcc32 \
  -$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 -H+ -W -V -VN \
  -$M16384,16777216 -$K4194304 -CG -EC:\Olivier\Sources\Sources 
olivier\Acarat\ \
  -Uc:\program files\borland\bds\4.0\Ocx\Servers;c:\program 
files\borland\bds\4.0\Source\ToolsApi;c:\program 
files\borland\bds\4.0\Lib;C:\Olivier\Sources\Commun\Composants;C:\Olivier\Sources\Composants\Systools\source;c:\program 
files\borland\bds\4.0\lib;c:\program 
files\borland\bds\4.0\Imports;c:\program 
files\borland\bds\4.0\Lib\Indy10;C:\Program 
Files\Borland\BDS\4.0\RaveReports\Lib;c:\documents and settings\olivier\mes 
documents\projets borland 
studio\bpl;C:\Olivier\Sources\Composants\graphics32-1-8-1;C:\Olivier\Sources\Composants\RxLib\DCUs;c:\olivier\sources\composants\rxlib\units;C:\Olivier\Sources\Composants\Systools\packages 
\
  -Oc:\program files\borland\bds\4.0\Ocx\Servers;c:\program 
files\borland\bds\4.0\Source\ToolsApi;c:\program 
files\borland\bds\4.0\Lib;C:\Olivier\Sources\Commun\Composants;C:\Olivier\Sources\Composants\Systools\source;c:\program 
files\borland\bds\4.0\lib;c:\program 
files\borland\bds\4.0\Imports;c:\program 
files\borland\bds\4.0\Lib\Indy10;C:\Program 
Files\Borland\BDS\4.0\RaveReports\Lib;c:\documents and settings\olivier\mes 
documents\projets borland 
studio\bpl;C:\Olivier\Sources\Composants\graphics32-1-8-1;C:\Olivier\Sources\Composants\RxLib\DCUs;c:\olivier\sources\composants\rxlib\units;C:\Olivier\Sources\Composants\Systools\packages 
\
  -Rc:\program files\borland\bds\4.0\Ocx\Servers;c:\program 
files\borland\bds\4.0\Source\ToolsApi;c:\program 
files\borland\bds\4.0\Lib;C:\Olivier\Sources\Commun\Composants;C:\Olivier\Sources\Composants\Systools\source;c:\program 
files\borland\bds\4.0\lib;c:\program 
files\borland\bds\4.0\Imports;c:\program 
files\borland\bds\4.0\Lib\Indy10;C:\Program 
Files\Borland\BDS\4.0\RaveReports\Lib;c:\documents and settings\olivier\mes 
documents\projets borland 
studio\bpl;C:\Olivier\Sources\Composants\graphics32-1-8-1;C:\Olivier\Sources\Composants\RxLib\DCUs;c:\olivier\sources\composants\rxlib\units;C:\Olivier\Sources\Composants\Systools\packages 
\
  PkgDllDir=C:\Documents and Settings\Olivier\Mes documents\Projets Borland 
Studio\Bpl \
  PkgDcpDir=C:\Documents and Settings\Olivier\Mes documents\Projets Borland 
Studio\Bpl \
  -AWinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE; 
\
  BPIOutputDir=C:\Documents and Settings\Olivier\Mes documents\Projets 
Borland Studio\Bpl \
  -W-UNSAFE_TYPE -W-UNSAFE_CODE -W-UNSAFE_CAST \
  Acarat.dpr 
Re: gcc options
#23
Author: Olivier Pons
Date: Wed, 11 Oct 2006 12:54
20 lines
1486 bytes
I finally found out that I had to put everything between ""
e.g.
  -R"c:\program files\borland\bds\4.0\Ocx\Servers;c:\program 
files\borland\bds\4.0\Source\ToolsApi"

and

the first problem was because the -E directive has added a backslash which 
caused interpretation problems


so here's the beginning of the make file :

ACARAT_PATH=C:\Olivier\Sources\Sources olivier\Acarat

"$(ACARAT_PATH)\Acarat.exe": "$(ACARAT_PATH)\Acarat.dpr"
  dcc32 \
-$A8 -$B- [snip]
-E"$(ACARAT_PATH)" \
[snip]
Re: gcc options
#25
Author: Jesper Hogstrom (Borland)
Date: Tue, 24 Oct 2006 10:34
11 lines
1407 bytes
Olivier Pons wrote:
> I finally found out that I had to put everything between ""

Yes, there are several command line traps when dealing with spaced 
directory names.

Fwiw, I would define a lot more macros; for directory names, compiler, 
debug options, release options. That makes the make script easier to 
move between machines and in general to tweak for different situations.

--Jesper
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