Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 799 Bytes

compiler-warning-level-4-c4232.md

File metadata and controls

22 lines (18 loc) · 799 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 4) C4232
Compiler Warning (level 4) C4232
11/04/2016
C4232
C4232
f92028a5-4ddd-43c1-97f5-4f724e5e14af

Compiler Warning (level 4) C4232

nonstandard extension used : 'identifier' : address of dllimport 'dllimport' is not static, identity not guaranteed

Under Microsoft extensions (/Ze), you can give a nonstatic value as the address of a function declared with the dllimport modifier. Under ANSI compatibility (/Za), this causes an error.

The following sample generates C4232:

// C4232.c
// compile with: /W4 /Ze /c
int __declspec(dllimport) f();
int (*pfunc)() = &f;   // C4232