Compiler Error C2195
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C2195.
identifier' : is a data segment
The code_seg pragma uses a segment name used with the data_seg pragma.
The following sample generates C2195:
// C2195.cpp
#pragma data_seg("MYDATA")
#pragma code_seg("MYDATA") // C2195
#pragma code_seg("MYDATA2") // OK
Show: