編譯器警告 (層級 1) C4080
必須是區段名稱的識別項,但卻找到 'symbol'
#pragma alloc_text 中的區段名稱必須是字串或識別項。 如果找不到有效的識別項,則編譯器會忽略 pragma。
下列範例會產生 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) {
}