Compiler Warning (level 1) C4502


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on

The latest version of this topic can be found at Compiler Warning (level 1) C4502.

linkage specification' requires use of keyword 'extern' and must precede all other specifiers

A linkage was specified without the extern keyword. Linkage is not relevant to non-extern types.

The compiler assumed the extern keyword.