#1 Error with camke when compiling microjson

Slēgta
bardao atvēra 4 gadi atpakaļ · 2 komentāri
bardao komentēja 4 gadi atpakaļ

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 komentēja 4 gadi atpakaļ
Īpašnieks

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 komentēja 4 gadi atpakaļ
Īpašnieks
@bardao, fixed 37f8b9b997
Pierakstieties, lai pievienotos šai sarunai.
Nav etiķešu
Nav atskaites punktu
Nav atbildīgā
2 dalībnieki
Notiek ielāde...
Atcelt
Saglabāt
Vēl nav satura.