Compiler Error C2194
'identifier' : is a text segment
The data_seg
pragma uses a segment name used with code_seg
.
The following sample generates C2194:
// C2194.cpp
// compile with: /c
#pragma code_seg("MYCODE")
#pragma data_seg("MYCODE") // C2194
#pragma data_seg("MYCODE2") // 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