Compiler Error C2200
'function': function has already been defined
An alloc_text
pragma uses a function name already defined. Ensure the alloc_text
pragma appears after the function declaration but before its definition.
The following sample generates C2200:
// C2200.cpp
// compile with: /c
extern "C" void func() {}
#pragma alloc_text("section", func) // C2200