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.
Error Message
◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
Compiler error C2217
'attribute1' must be used with 'attribute2'
The first function attribute requires the second attribute to be
used.
Some causes for this error include
■ An interrupt function explicitly declared as near. Interrupt
functions must be far.
■ An interrupt function or a function with a variable number of
arguments, when that function is declared with the _fortran,
_pascal, or _fastcall attribute. Functions declared with the
_interrupt attribute or with a variable number of arguments
must use the C calling conventions. Remove the _fortran,
_pascal, or _fastcall attribute from the function
declaration.
-♦-