We recommend using Visual Studio 2017

Compiler Warning (level 3) C4073

 

The latest version of this topic can be found at Compiler Warning (level 3) C4073.

initializers put in library initialization area

Only third-party library developers should use the library initialization area, which is specified by #pragma init_seg. The following sample generates C4073:

// C4073.cpp  
// compile with: /W3  
#pragma init_seg(lib)   // C4073  
  
// try this line to resolve the warning  
// #pragma init_seg(user)  
  
int main() {  
}  

Show: