Compiler Warning (level 1) C4080
expected identifier for segment name; found 'symbol'
The name of the segment in #pragma alloc_text must be a string or an identifier. The compiler ignores the pragma if a valid identifier is not found.
The following sample generates C4080:
// C4080.cpp
// compile with: /W1
extern "C" void func(void);
#pragma alloc_text() // C4080
// try this line to resolve the warning
// #pragma alloc_text("mysection", func)
int main() {
}
void func(void) {
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for