Open horoyoii opened 2 years ago
As of August 2017, the release date of gcc v7.2, the C++17 standard was still in draft form. The gcc v7 manual (https://gcc.gnu.org/gcc-7/changes.html) states that:
The C++ front end has experimental support for all of the current C++17 draft with the -std=c++1z
The non-experimental support of C++17 by gcc occurred with gcc v9 (https://gcc.gnu.org/gcc-9/changes.html).
Under these conditions, this is no surprise that croncpp does not compile with gcc v7. With recent gcc versions, the -std=c++1z
flag (now equivalent to -std=c++17
) succeed to compile the aformentionned main.cpp
.
Hi, i've encountered some complie error when i passed
c++1z option
to a complier.My
main.cpp
is simple as below.But when I tried to compile this like below, some error occured.
Without the
--std=c++1z
option, it complied without any complaints.My complier version is
gcc version 7.2.1 20170829 (Red Hat 7.2.1-1) (GCC)