Hi All
When I try to compile a program which source has suffix .dpr I get an eror message from linker:
$ gpc -s --borland-pascal -DGPC -DSOLARIS --unit-path=../obj -o accom accom.dpr ld: elf error: file accom.dpr: unknown type, unable to process using elf(3E) libraries ld: fatal: File processing errors. No output written to accom collect2: ld returned 1 exit status
Even if I exchange --borland-pascal for --object-pascal which seems to be Delphi compatibility mode, the story repeats. Is it GPC problem? Any ideas? ...besides changing filenames.
I'm using GPC dated 19991030 build on GCC 2.95.2 on Solaris 8 x86.
Thanks in advance for responses
Mariusz Zynel wrote:
$ gpc -s --borland-pascal -DGPC -DSOLARIS --unit-path=../obj -o accom accom.dpr
$ gpc -s --delphi -DGPC -DSOLARIS --unit-path=../obj -o accom -x pascal accom.dpr
GPC does not automatically recognize the suffix `.dpr' for Pascal.
Even if I exchange --borland-pascal for --object-pascal which seems to be Delphi compatibility mode, the story repeats. [...]
Nope, `--object-pascal' refers to ANSI Draft Object Pascal. `--delphi' is for (rudimentary) Delphi compatibility mode. Be prepared to have some Delphi things not working.
Better do not use all those `--foo-pascal' switches. They are just for switching _off_ GPC extensions.
Peter
On 18 Apr 2000, at 16:19, Peter Gerwinski wrote:
Mariusz Zynel wrote:
$ gpc -s --borland-pascal -DGPC -DSOLARIS --unit-path=../obj -o accom accom.dpr
$ gpc -s --delphi -DGPC -DSOLARIS --unit-path=../obj -o accom -x pascal accom.dpr
GPC does not automatically recognize the suffix `.dpr' for Pascal.
[...]
Any plans to support this (perhaps in Delphi mode)? Delphi recognises the extension as meaning that this is either a program or a DLL (and most certainly not a unit) - i.e., compile + link.
Frank: Delphi supports 'AssignFile' and 'CloseFile' (as synonyms for 'Assign' and 'Close'). Can we support these (again perhaps in Delphi mode)?
e.g., program foo; var f: file; begin AssignFile (f, 'foo.txt'); { blah, blah; } CloseFile (f); end.
Best regards, The Chief ----- Dr Abimbola A Olowofoyeku (The African Chief) Email: African_Chief@bigfoot.com Author of Chief's Installer Pro v5.22 for Win32 http://www.bigfoot.com/~African_Chief/chief32.htm