Compiler Error C2598 (Windows CE 5.0)

Send Feedback

linkage specification must be at global scope

The linkage specifier is declared at local scope.

The following example shows ways this error might occur.

void func()
{
   extern "C" int func2();   // error, linkage declared in
   .                         //   block at local scope
   .
   .
}
extern "C" int func( int i );  // OK

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.