#1 Error with camke when compiling microjson

Kapalı
bardao tarafından 4 yıl önce kere açıldı · 2 yorum
bardao 4 yıl önce olarak yorumlandı

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 yıl önce olarak yorumlandı
Sahibi

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 yıl önce olarak yorumlandı
Sahibi
@bardao, fixed 37f8b9b997
Giriş yap bu konuşmaya katılmak için.
Etiket Yok
Kilometre Taşı Yok
Atanan Kişi Yok
2 Katılımcı
Yükleniyor...
İptal
Kaydet
Henüz bir içerik yok.