Peter N Lewis wrote:
Using methods-always-virtual gives a problem for interface-only/implementation-only compiles.
With the example shown below, if you compile with
gpc -c peterQ.pas
all is well, but if you compile as gp often does, first with interface-only and then with implementation-only:
gpc -c --interface-only peterQ.pas gpc -c --implementation-only peterQ.pas
gpc thinks the object defined in the interface is not methods-always-virtual.
Why do you think so? The messages say it has a virtual method.
This warning is suppressed with --mac-pascal, not with --methods-always-virtual in case you mean this.
Frank