'section name': 세그먼트는 사용하기 전에 #pragma data_seg, code_seg 또는 섹션을 사용하여 정의해야 합니다.
allocate 문은 아직 code_seg, data_seg 또는 섹션 pragma로 정의되지 않은 세그먼트를 나타냅니다.
다음 샘플에서는 C2341을 생성합니다.
// C2341.cpp
// compile with: /c
__declspec(allocate(".test")) // C2341
int j = 1;
해결 방법:
// C2341b.cpp
// compile with: /c
#pragma data_seg(".test")
__declspec(allocate(".test"))
int j = 1;