#1 Error with camke when compiling microjson

닫힘
bardao4 년 전을 오픈 · 2개의 코멘트
bardao 코멘트됨, 4 년 전

Hi,

I'm getting the following issue when running

cmake --build . --config DEBUG -- -j4

/home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

I assumed g++ 5.5.0 should already have c++11 support. What could I be missing? Thanks

Hi, I'm getting the following issue when running > cmake --build . --config DEBUG -- -j4 > /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. I assumed g++ 5.5.0 should already have c++11 support. What could I be missing? Thanks
semlanik 코멘트됨, 4 년 전
소유자

Hi @bardao, will check shortly. I'm using gcc 8 and higher for tests. But have feeling that for gcc-5.x.x c++11 is not enabled by default as for later versions. So will enable it forcefully. One more thing, this repo is internal mirro for microjson. It's better to use github https://github.com/semlanik/microjson. Thank you!

Hi @bardao, will check shortly. I'm using gcc 8 and higher for tests. But have feeling that for gcc-5.x.x c++11 is not enabled by default as for later versions. So will enable it forcefully. One more thing, this repo is internal mirro for microjson. It's better to use github https://github.com/semlanik/microjson. Thank you!
semlanik 코멘트됨, 4 년 전
소유자
@bardao, fixed 37f8b9b997
로그인하여 이 대화에 참여
레이블 없음
마일스톤 없음
담당자 없음
참여자 2명
로딩중...
취소
저장
아직 콘텐츠가 없습니다.