antlr4
antlr4 copied to clipboard
runtime-cpp-demo does not build as C++20
When tryng to build runtime-cpp-demo in runtime/Cpp/demo/Linux/main.cpp as C++20, I get the following error message:
src/antlr4/runtime/Cpp/demo/Linux/main.cpp:24:104: error: no matching function for call to βantlr4::ANTLRInputStream::ANTLRInputStream(const char8_t [73])β
24 | ANTLRInputStream input(u8"π΄ = π + \"π\";(((x * Ο))) * Β΅ + β°; a + (x * (y ? 0 : 1) + z);");
| ^
...
The remaining u8 prefixes besides this after commit 09eb905332c3abe are in the Mac cpp-runtime-demo, but unfortunately I cannot test that. I tried removing the u8 prefix in the Linux demo and that made it build for me as C++20.
When tryng to build runtime-cpp-demo in runtime/Cpp/demo/Linux/main.cpp as C++20, I get the following error message:
src/antlr4/runtime/Cpp/demo/Linux/main.cpp:24:104: error: no matching function for call to βantlr4::ANTLRInputStream::ANTLRInputStream(const char8_t [73])β 24 | ANTLRInputStream input(u8"π΄ = π + \"π\";(((x * Ο))) * Β΅ + β°; a + (x * (y ? 0 : 1) + z);"); | ^ ...
The remaining u8 prefixes besides this after commit 09eb905 are in the Mac cpp-runtime-demo, but unfortunately I cannot test that. I tried removing the u8 prefix in the Linux demo and that made it build for me as C++20.
I build failed in C++11, can you help me?
The error message is under:
make[2]: *** No rule to make target '/opt/antlr4/runtime/Cpp/demo/demo/TParser.g4', needed by '/opt/antlr4/runtime/Cpp/demo/demo/generated/TLexer.cpp'. Stop. CMakeFiles/Makefile2:83: recipe for target 'CMakeFiles/GenerateParser.dir/all' failed make[1]: *** [CMakeFiles/GenerateParser.dir/all] Error 2 Makefile:135: recipe for target 'all' failed make: *** [all] Error 2