Peter Gerwinski wrote:
GPC does not automatically recognize the suffix `.dpr' for Pascal.
So, I have to stay with copying to .pas than copying back to .dpr.
No, you have to give GPC the `-x pascal' option.
I could not find that in man page. What does it mean?
We use Delphi to build our system, but we use also Free Pascal and of course GPC. So we do not use Delphi extensions at all, we do not even use classes, but old-BP-fashioned objects.
Then it should work.
Better do not use all those `--foo-pascal' switches. They are just for switching _off_ GPC extensions.
Without that swicht I have problems with building our system. The code is simply BP code with changes forced by mentioned compilers, usually compiled conditionally.
Do those --foo-pascal switches do more than switching off GPC extensions?
Not really: They switch off warnings about some BP braindamage and some reserved identifiers not present in BP, and they switch on warnings about GPC extensions.
Are they safe?
Yes, of course. In which sense are you afraid of them being unsafe? They are only affecting warning behaviour.
I was not sure what exactly those switches do. I see they are safe.
Thank you Peter