본문 바로가기

IT/C++, MFC

Dev-C++에서 C++ 11 사용하기

비쥬얼 스튜디오 (Visual Studio)가 아닌 Dev-C++에서 C++ 11 버전을 설정하고자 할 때

16 [Warning] extended initializer lists only available with -std=c++11 or -std=gnu++11
19 [Error] 'to_string' was not declared in this scope
28 recipe for target 'exam01.o' failed

상기와과 같이 에러가 발생했을 때 도구 - 컴파일러 설정

1. 컴파일러 추가 명령 클릭

2. 아래 빈칸에 다음 명령어를 입력

-std=c++11