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