description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: Compiler Warning (level 1) C4080 |
Compiler Warning (level 1) C4080 |
11/04/2016 |
|
|
964fb3f4-b9fd-450b-aa23-35cece126172 |
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) {
}