[Visual Studio] no member named 'system_error' in 'std' /'system_error'는 'std'의 멤버가 아닙니다

Heeyoung Joe·2023년 8월 15일
0

[Windows] 

목록 보기
4/5

https://stackoverflow.com/questions/12646165/using-stdsystem-category-in-static-class-destructor-with-msvc11

왠만하면 아래 두 개로 해결된다고 합니다.
이게 안 되면 버그라고 합니다!
저는 둘 다 안돼서 결국 주석 처리하고 에러 메세지를 printf로 대체했어요

1. system_error 라이브러리 추가하기

std에 있지 않을 거라고 가정하고 진행합니다.

#indclude <system_error>

2. namespace 재정의하기

cstdlib로 대체해줍니다.

namespace std
{
		#include <cstdlib>
};
profile
SW Engineer

0개의 댓글