C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
C2217
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     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.
 
        ■ A function with a variable number of parameters that is
          declared with the __fortran, __pascal, or __fastcall
          attribute. These functions must use C calling conventions.
          Remove the __fortran, __pascal, or __fastcall attribute from
          the function declaration.
                                    -♦-