Command-line options and CFG file (was: New Alpha)_(re)

Thu, 3 Apr 1997 12:45:39 +0000 (GMT)


On Wed, 2 Apr 1997 20:11:12 +0200 (MET DST) Peter Gerwinski 
 wrote:
>According to The African Chief:
>> [...] In case you haven't done this, can you
>> introduce a .CFG file (like with Borland) where one can
>> put all the command line switches that they want to use?
>
>I have an old version of GCC for some special hardware here (without
>source #@*!) which accepts a `@filename' option pointing to a file with
>additional options.  We could, for example, do the same and make
>
>    gpc @gpc.cfg
>
>read a file `gpc.cfg' in the current directory. 

Yes, that would be nice. But why not just let it look for a 'gpc.cfg'
file automatically? It could then take whatever it finds there as
command line parameters (in addition to any other ones passed
at the command line itself). There could also be provision for
making comments in the .cfg file).

I apprecite that looking for, and reading a .cfg file automatically
may be strange to those not coming from a BP or DOS background, 
so I don't think that this is a wish that requires too nuch attention.

>> You can make many sample .CFG files 
>> (e.g., borland.cfg, extended.cfg, iso.cfg, etc) which people
>> can then rename to GPC.CFG or whatever.
>
>In principle this is not necessary:  By default, GPC understands all of
>these dialects (as far as implemented) and you can specify one (or more)
>of `--standard-pascal', `--extended-pascal', `--borland-pascal' to
>restrict GPC's language to the specified dialects.

Ok.

BTW: having just downloaded and installed GPC 2.0 and some of
the DJGPP stuff referred to in the docs, I still can't get anything to
compile. The place where I am stuck now when I try to compile
is this message:

"C:\DJGPP\BIN/ld.exe: cannot open linker script file djgpp.lnk:
No such file or directory (ENOENT)"

A search through my disk shows that no file with the .lnk extension
exists. Any clues? This is not in the FAQ!

Thanks.

Best regards, The Chief 
Dr Abimbola A. Olowofoyeku (The African Chief, and the Great Elephant)
Author of:  Chief's Installer Pro v3.12 for Win16 and Win32.
Homepage:  http://ourworld.compuserve.com/homepages/African_Chief/
E-mail: laa12@cc.keele.ac.uk



The African Chief (laa12@cc.keele.ac.uk)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es