Compiler Error C2217
'attribute1' must be used with 'attribute2'
The first function attribute requires the use of the second attribute.
Some causes for this error include:
- An interrupt function explicitly declared as near. Interrupt functions must be declared as far.
- An interrupt function that is declared with the __fortran, __pascal, or __fastcall attribute. Functions declared with the __interrupt attribute must use C calling conventions.
- __pascal, or __fastcall attribute. These functions must use C calling conventions. Remove the __fortran, __pascal, or __fastcall attribute from the function declaration.