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) C4399
Collapse the table of content
Expand the table of content

Compiler Warning (level 1) C4399

Error Message

'symbol' : per-process symbol should not be marked with __declspec(dllimport) when compiled with /clr:pure

Data from a native image or an image with native and CLR constructs can not be imported into a pure image. To resolve this warning, compile with /clr (not /clr:pure) or delete __declspec(dllimport).

Example

The following sample generates C4399.

// C4399.cpp
// compile with: /clr:pure /doc /W1 /c
__declspec(dllimport) __declspec(process) extern const int i;   // C4399

Community Additions

ADD
Show:
© 2015 Microsoft