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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for