Compiler Error C0089 - Schneider Electric

Compiler Error C0089

Message

Interface of the overridden method ‘{0}’ of the interface ‘{1}’ does not match the declaration

Message Cause

The signature of the implemented method does not match the signature of the method in the interface.

Solution

Make sure that the same return types and parameters are declared.

Error Example

PROGRAM PLC_PRGVAR  inst : FB;END_VAR

INTERFACE XYMETHOD METH1VAR_INPUT  iPar : INT;END_VAR

FUNCTION_BLOCK FB IMPLEMENTS XYVAREND_VARMETHOD METH1VAR_INPUTEND_VAR

--> C0089: Interface of the overridden method 'METH1' of the interface 'XY' does not match the declaration

EIO0000003933.00

© 2019 Schneider Electric. All rights reserved.

Từ khóa » C008-9