This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
Compiler Error C2537
'specifier' : illegal linkage specification
Possible causes
- The linkage specifier is not supported. Only the "C" linkage specifier is supported.
- "C" linkage is specified for more than one function in a set of overloaded functions. This is not allowed.
The following sample generates C2537:
extern "c" void func(); // C2537
// try ...
// extern "C" void func();
void main() {
}