Compiler Error C2201

'identifier' : must have external linkage in order to be exported/imported

The specified static identifier was exported.

The following is an example of this error:

__declspec(dllexport) static void func() {}  // error, func() is static
__declspec(dllexport) void func() {}         // OK