Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'function': function has already been defined
Remarks
An alloc_text pragma uses a function name already defined. Ensure the alloc_text pragma appears after the function declaration but before its definition.
Example
The following example generates C2200:
// C2200.cpp
// compile with: /c
extern "C" void func() {}
#pragma alloc_text("section", func) // C2200