'identifier' : 必須有外部連結才能匯出/匯入
備註
匯出的識別碼為 static。
範例
以下範例會產生 C2201,並示範如何修正:
// C2201.cpp
// compile with: /c
__declspec(dllexport) static void func() {} // C2201 func() is static
__declspec(dllexport) void func2() {} // OK
'identifier' : 必須有外部連結才能匯出/匯入
匯出的識別碼為 static。
以下範例會產生 C2201,並示範如何修正:
// C2201.cpp
// compile with: /c
__declspec(dllexport) static void func() {} // C2201 func() is static
__declspec(dllexport) void func2() {} // OK