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.
#pragma pragma should be at global scope
The pragma pragma should not be used within a local scope. The pragma will not be valid until global scope is encountered after the current scope.
The following sample generates C4177:
// C4177.cpp
// compile with: /W1
// #pragma bss_seg("global") // OK
int main() {
#pragma bss_seg("local") // C4177
}