Compiler Warning (level 1) C4074
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Compiler Warning (level 1) C4074

initializers put in compiler reserved initialization area

The compiler initialization area, which is specified by #pragma init_seg, is reserved by Microsoft. Code in this area may be executed before initialization of the C run-time library.

The following sample generates C4074:

// C4074.cpp
// compile with: /W1
#pragma init_seg( compiler )   // C4074

// try this line to resolve the warning
// #pragma init_seg(user)

int main() {
© 2016 Microsoft