Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Compiler Warning (level 3) C4980

Error Message

'keyword' : use of this keyword requires /clr:oldSyntax command line option

A keyword from a previous version was used. Update your code for the newer syntax or use /clr:oldSyntax.

C4980 is a warning that is always issued as an error. Use /wd to turn the warning off. See /w, /Wn, /WX, /Wall, /wln, /wdn, /wen, /won (Warning Level) for more information.

The following sample generates C4980:

// C4980.cpp
// compile with: /clr
int main() {
   int x1 = 0;
   int^ px = __box(x1);   // C4980
   int^ px2 = x1;   // OK
}

Community Additions

ADD
Show:
© 2015 Microsoft