The -std=c++1z makes the compiler use experimental support for the c++ 17 standard. You seem to be building it with an earlier version of the standard, probably c++14 or c++ 11. Add that flag in and see if that fixes things. You may need to upgrade to a newer version of the compiler.
1 Like