'function' : 不一致的 DLL 連結
備註
檔案中的兩個定義會因使用 dllimport而有所不同。
範例
下列範例會產生 C4273,並示範如何修正它。
// C4273.cpp
// compile with: /W1 /c
char __declspec(dllimport) c;
char c; // C4273, delete this line or the line above to resolve
下列範例會產生 C4273。 若要修正此問題,請刪除的重新宣告 printf_s。
// C4273_b.cpp
// compile with: /W1 /clr /c
#include <stdio.h>
extern "C" int printf_s(const char *, ...); // C4273