Hi,
When I compile the following program:
#include
#include <chrono>
int main() {
return 0;
}
with a osx cross compiler based on clang 9 on linux,I get the
following warnings (full output below):
CAUTION: This message was generated due to the define:
BOOST_NO_CXX11_HDR_CHRONO [-W#pragma-messages]
This is quite strange as the compiler generates the binary which means
there was no issue to find <chrono>.
What's wrong then?
Kind regards,
F
$ x86_64-apple-darwin13-clang++-libc++ -o boost_math_constants -Wall
-Wextra -std=c++14 -m64 -mmacosx-version-min=10.9
-I/softs/osx64-clang-9.0.1/release/boost/include
boost_math_constants.cpp
In file included from Progs/boost_math_constants.cpp:1:
In file included from
/softs/osx64-clang-9.0.1/release/boost/include/boost/math/constants/constants.hpp:11:
/softs/osx64-clang-9.0.1/release/boost/include/boost/math/tools/cxx03_warn.hpp:99:1:
warning: CAUTION: One or more C++11 features were found to be
unavailable [-W#pragma-messages]
BOOST_PRAGMA_MESSAGE("CAUTION: One or more C++11 features were found
to be unavailable")
^
/softs/osx64-clang-9.0.1/release/boost/include/boost/config/pragma_message.hpp:24:34:
note: expanded from macro 'BOOST_PRAGMA_MESSAGE'
# define BOOST_PRAGMA_MESSAGE(x) _Pragma(BOOST_STRINGIZE(message(x)))
^
<scratch space>:307:2: note: expanded from here
message("CAUTION: One or more C++11 features were found to be unavailable")
^
In file included from Progs/boost_math_constants.cpp:1:
In file included from
/softs/osx64-clang-9.0.1/release/boost/include/boost/math/constants/constants.hpp:11:
/softs/osx64-clang-9.0.1/release/boost/include/boost/math/tools/cxx03_warn.hpp:100:1:
warning: CAUTION: Compiling Boost.Math in pre-C++11 conformance modes
is now deprecated and will be removed from March 2021.
[-W#pragma-messages]
BOOST_PRAGMA_MESSAGE("CAUTION: Compiling Boost.Math in pre-C++11
conformance modes is now deprecated and will be removed from March
2021.")
^
/softs/osx64-clang-9.0.1/release/boost/include/boost/config/pragma_message.hpp:24:34:
note: expanded from macro 'BOOST_PRAGMA_MESSAGE'
# define BOOST_PRAGMA_MESSAGE(x) _Pragma(BOOST_STRINGIZE(message(x)))
^
<scratch space>:310:2: note: expanded from here
message("CAUTION: Compiling Boost.Math in pre-C++11 conformance modes
is now deprecated and will be removed from March 2021.")
^
In file included from Progs/boost_math_constants.cpp:1:
In file included from
/softs/osx64-clang-9.0.1/release/boost/include/boost/math/constants/constants.hpp:11:
/softs/osx64-clang-9.0.1/release/boost/include/boost/math/tools/cxx03_warn.hpp:101:1:
warning: CAUTION: Define BOOST_MATH_DISABLE_DEPRECATED_03_WARNING to
suppress this message. [-W#pragma-messages]
BOOST_PRAGMA_MESSAGE("CAUTION: Define
BOOST_MATH_DISABLE_DEPRECATED_03_WARNING to suppress this message.")
^
/softs/osx64-clang-9.0.1/release/boost/include/boost/config/pragma_message.hpp:24:34:
note: expanded from macro 'BOOST_PRAGMA_MESSAGE'
# define BOOST_PRAGMA_MESSAGE(x) _Pragma(BOOST_STRINGIZE(message(x)))
^
<scratch space>:313:2: note: expanded from here
message("CAUTION: Define BOOST_MATH_DISABLE_DEPRECATED_03_WARNING to
suppress this message.")
^
In file included from Progs/boost_math_constants.cpp:1:
In file included from
/softs/osx64-clang-9.0.1/release/boost/include/boost/math/constants/constants.hpp:11:
/softs/osx64-clang-9.0.1/release/boost/include/boost/math/tools/cxx03_warn.hpp:102:1:
warning: CAUTION: This message was generated due to the define:
BOOST_NO_CXX11_HDR_CHRONO [-W#pragma-messages]
BOOST_PRAGMA_MESSAGE("CAUTION: This message was generated due to the
define: " BOOST_MATH_CXX03_WARN_REASON)
^
/softs/osx64-clang-9.0.1/release/boost/include/boost/config/pragma_message.hpp:24:34:
note: expanded from macro 'BOOST_PRAGMA_MESSAGE'
# define BOOST_PRAGMA_MESSAGE(x) _Pragma(BOOST_STRINGIZE(message(x)))
^
<scratch space>:316:2: note: expanded from here
message("CAUTION: This message was generated due to the define: "
"BOOST_NO_CXX11_HDR_CHRONO")
^
4 warnings generated.