Hi
Did you only recently start using chrono? It's a c++11 library. We'll have to switch the build to use c++11 then if you need it, but that's a good idea anyway.
This can be done by adding
set(CMAKE_CXX_STANDARD 11)
To the toplevel CMakeLists.txt.
Kris Thielemans
Reader in Medical Imaging Physics
UCL
From: Evgueni Ovtchinnikov
Sent: Monday 21 August 17:08
Subject: build error on VM/Linux
I am getting this error when trying to build SIRF on VM and Centos 7 machines:
In file included from /usr/include/c++/5/chrono:35:0,
from /home/sirfuser/devel/SIRF/src/xSTIR/cSTIR/stir_x.h:26,
from /home/sirfuser/devel/SIRF/src/xSTIR/cSTIR/cstir_p.cpp:26:
/usr/include/c++/5/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.
Any idea what is going on and how to fix it?
Thanks,
Evgueni