# CONFIG_SITE.Common.linuxCommon
# ...
CODE_CPPFLAGS += -fno-strict-aliasing
USR_CXXFLAGS += $(STD_CXXFLAGS)
STD_CXXFLAGS = -std=c++20
Greetings all,
I'd like to build our EPICS software (starting on an Alma Linux 9 platform) for
C++17 or even C++20. I'm presently building with C++11 by adding
-std=c++11 to the USR_CXXFLAGS in configure/CONFIG_COMMON. However,
when I tried c++20/c++17/c++14 and it failed in every case with:
- g++: error: unrecognized command line option ‘-std=c++20’
somewhere in the middle of building libcom - after the compilation call to
resourceLib.
A colleague of mine played with the configure/CONFIG.gnuCommon and
had a different level of success and failure.
Any help, even pointing me to the correct documentation would be
greatly appreciated.
Cheers,
Pierrick
--
Pierrick Hanlet
Fermi National Accelerator
Accelerator Front End Controls
+1-630-840-5555 -- lab
+1-312-687-4980 -- mobile
"Whether you think you can or think you can't, you're right" -- Henry Ford