troy@troy-ThinkPad-T450s:~/Documents/Super-Template-Tetris-master/tetris$ clang++ main.cpp -std=c++1z -Wno-gnu-string-literal-operator-template -D COMMAND -o tetris ; ./tetris In file included from main.cpp:1: In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/iostream:39: In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/ostream:38: In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/ios:42: In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/ios_base.h:41: In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/locale_classes.h:40: In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/string:52: In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/basic_string.h:2815: In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/ext/string_conversions.h:43: /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/cstdio:120:11: error: no member named 'gets' in the global namespace using ::gets; ^ In file included from main.cpp:4: In file included from ./list.h:5: In file included from ./serialize.h:3: ./string.h:133:14: error: no template named 'conditional_t' in namespace 'std'; did you mean 'conditional'? std::conditional_t= 0, String<>, String<'-'>>, ~~~^~~~~~~~~~~~~ conditional /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/type_traits:1780:12: note: 'conditional' declared here struct conditional ^ In file included from main.cpp:4: In file included from ./list.h:5: In file included from ./serialize.h:3: ./string.h:33:1: error: implicit instantiation of undefined template 'ToString, String<'-'> > >' using to_string = typename ToString::type; ^ ./string.h:25:8: note: template is declared here struct ToString; ^ ./string.h:33:1: error: implicit instantiation of undefined template 'ToString, String<'-'> > >' using to_string = typename ToString::type; ^ ./string.h:25:8: note: template is declared here struct ToString; ^ In file included from main.cpp:4: In file included from ./list.h:5: ./serialize.h:36:40: error: no template named 'underlying_type_t' in namespace 'std'; did you mean 'underlying_type'? int_to_string>(x)>, ~~~^~~~~~~~~~~~~~~ underlying_type /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/type_traits:1855:12: note: 'underlying_type' declared here struct underlying_type ^ In file included from main.cpp:6: In file included from ./game.h:3: In file included from ./block_generator.h:3: In file included from ./blocks.h:4: In file included from ./grid.h:5: ./position.h:29:10: error: no template named 'conditional_t' in namespace 'std'; did you mean 'conditional'? std::conditional_t ~~~~~^~~~~~~~~~~~~ conditional /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/type_traits:1780:12: note: 'conditional' declared here struct conditional ^ In file included from main.cpp:6: In file included from ./game.h:3: In file included from ./block_generator.h:3: In file included from ./blocks.h:4: ./grid.h:45:14: error: no template named 'conditional_t' in namespace 'std'; did you mean 'conditional'? std::conditional_t ~~~~~^~~~~~~~~~~~~ conditional /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/type_traits:1780:12: note: 'conditional' declared here struct conditional ^ In file included from main.cpp:4: In file included from ./list.h:5: In file included from ./serialize.h:3: ./string.h:33:1: error: implicit instantiation of undefined template 'ToString, String<'-'> > >' using to_string = typename ToString::type; ^ ./string.h:47:1: note: in instantiation of template type alias 'to_string' requested here using string_add = typename StringAdd, to_string>::type; ^ ./string.h:131:1: note: in instantiation of template type alias 'string_add' requested here using int_to_string = ^ ./color.h:21:1: note: in instantiation of template type alias 'int_to_string' requested here using escape_code = ^ ./color.h:42:20: note: in instantiation of template type alias 'escape_code' requested here using colorReset = escape_code<0>; ^ ./string.h:25:8: note: template is declared here struct ToString; ^ In file included from main.cpp:6: In file included from ./game.h:3: In file included from ./block_generator.h:3: In file included from ./blocks.h:5: ./pixel.h:71:13: error: use of undeclared identifier 'colorReset' colorReset>; ^ In file included from main.cpp:4: In file included from ./list.h:5: ./serialize.h:36:23: error: no matching conversion for static_cast from 'Color' to 'std::underlying_type' int_to_string>(x)>, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./pixel.h:85:9: note: in instantiation of template type alias 'serialize_enum' requested here serialize_enum; ^ /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/type_traits:1855:12: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'Color' to 'const std::underlying_type' for 1st argument struct underlying_type ^ /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/type_traits:1855:12: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'Color' to 'std::underlying_type' for 1st argument /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/type_traits:1855:12: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided In file included from main.cpp:6: In file included from ./game.h:9: ./playfield.h:85:18: error: no template named 'conditional_t' in namespace 'std'; did you mean 'conditional'? std::conditional_t, c>, ~~~^~~~~~~~~~~ conditional /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/type_traits:1780:12: note: 'conditional' declared here struct conditional ^ In file included from main.cpp:4: ./list.h:64:1: error: implicit instantiation of undefined template 'Cons, std::conditional List<>, List > > >' using cons = typename Cons::type; ^ ./playfield.h:83:5: note: in instantiation of template type alias 'cons' requested here using apply = ^ ./utility.h:18:1: note: in instantiation of template type alias 'apply' requested here using call = typename f::template apply::type; ^ ./list.h:149:26: note: in instantiation of template type alias 'call' requested here using type = fold, List>; ^ ./foldable.h:15:1: note: in instantiation of template class 'Foldable, List > >, std::integral_constant >, List empty_pixel> > >' requested here using fold = typename Foldable::type; ^ ./list.h:149:18: note: in instantiation of template type alias 'fold' requested here using type = fold, List>; ^ ./foldable.h:15:1: note: in instantiation of template class 'Foldable, std::integral_constant >, List empty_pixel>, List > >' requested here using fold = typename Foldable::type; ^ ./playfield.h:92:1: note: in instantiation of template type alias 'fold' requested here using playfield_get_full_rows = car< ^ ./playfield.h:101:9: note: in instantiation of template type alias 'playfield_get_full_rows' requested here playfield_get_full_rows< ^ ./list.h:56:8: note: template is declared here struct Cons; ^ ./list.h:64:1: error: implicit instantiation of undefined template 'Cons, std::conditional List<>, List > > >' using cons = typename Cons::type; ^ ./list.h:56:8: note: template is declared here struct Cons; ^ In file included from main.cpp:6: ./game.h:207:23: error: no template named 'conditional_t' in namespace 'std'; did you mean 'conditional'? using type = std::conditional_t; ~~~^~~~~~~~~~~ conditional /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/type_traits:1780:12: note: 'conditional' declared here struct conditional ^ In file included from main.cpp:6: ./game.h:223:18: error: no template named 'conditional_t' in namespace 'std'; did you mean 'conditional'? std::conditional_t<(s::delay >= standardDelay), ~~~^~~~~~~~~~~ conditional /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/type_traits:1780:12: note: 'conditional' declared here struct conditional ^ In file included from main.cpp:6: ./game.h:274:14: error: no template named 'conditional_t' in namespace 'std'; did you mean 'conditional'? std::conditional_t< ~~~^~~~~~~~~~~ conditional /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/type_traits:1780:12: note: 'conditional' declared here struct conditional ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. bash: ./tetris: No such file or directory troy@troy-ThinkPad-T450s:~/Documents/Super-Template-Tetris-master/tetris$ clang -v clang version 3.8.0 (tags/RELEASE_380/final) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /usr/local/bin Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8 Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.4 Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9 Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.3 Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8 Candidate multilib: .;@m64 Selected multilib: .;@m64