Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Warning (level 1) C4273
Collapse the table of content
Expand the table of content

Compiler Warning (level 1) C4273

Error Message

'function' : inconsistent DLL linkage

Two definitions in a file differ in their use of dllimport.

Example

The following sample generates C4273.

// C4273.cpp
// compile with: /W1 /c
char __declspec(dllimport) c;
char c;   // C4273, delete this line or the line above to resolve

The following sample generates C4273.

// C4273_b.cpp
// compile with: /W1 /clr /c
#include <stdio.h>
extern "C" int printf_s(const char *, ...);   // C4273

Community Additions

ADD
Show:
© 2015 Microsoft