On Wed, 2 Apr 1997 20:11:12 +0200 (MET DST) Peter Gerwinski peter@agnes.dida.physik.uni-essen.de 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
On Thu, 3 Apr 1997, The African Chief wrote:
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!
You may be mixing a djgpp-V2.0 based GPC binary with a djgpp-V2.01 toolchain (ie: you have djdev201.zip installed). djgpp V2.01 renamed djgpp.lnk to djgpp.djl
If this is so, it may help to edit `specs.gpc' and change the "link_command" to refer to `djgpp.djl' instead of `djgpp.lnk'
The fancy option is of course to upgrade either gpc or djgpp.
Hope this helps, JanJaap
--- Thus spake the master programmer: "After three days without programming, life becomes meaningless." [The Tao Of Programming]