#1 Error with camke when compiling microjson

Fermé
Créé il y a 4 ans par bardao · 2 commentaires
bardao a commenté il y a 4 ans

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 a commenté il y a 4 ans
Propriétaire

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 a commenté il y a 4 ans
Propriétaire
@bardao, fixed 37f8b9b997
Connectez-vous pour rejoindre cette conversation.
Pas d'étiquette
Aucun jalon
Pas d'assignataire
2 Participants
Chargement…
Annuler
Enregistrer
Il n'existe pas encore de contenu.