The linkage specifier is declared at local scope. Ex:
// compile with: /c
void func() {
extern "C" int func2(); // C2598
}
Possible resolution:
// compile with: /c
void func() {
}
extern "C" int func2( int i );
This article is a derivative work based on Compiler Error C2598 which is provided by MSDN Community Content - Visual C++.