Compiler Warning (level 1) C4518
Collapse the table of content
Expand the table of content
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. ArchiveDisclaimer

Compiler Warning (level 1) C4518

Error Message

'specifier' : storage-class or type specifier(s) unexpected here; ignored

The following sample generates C4518:

// C4518.cpp
// compile with: /c /W1
_declspec(dllexport) extern "C" void MyFunction();   // C4518

extern "C" void MyFunction();   // OK
© 2016 Microsoft