编译器警告(等级 1)C4518

“specifier”:此处遇到意外的存储类或类型说明符;已忽略

下面的示例生成 C4518:

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

extern "C" void MyFunction();   // OK