Open lijuwen opened 1 year ago
I want to use cpp to refactor g4 of postgres. g4 can use cpp, but linking with main will result in a bunch of errors. Thank you for asking for help
mk file java -jar /usr/local/lib64/antlr-4.13.0-complete.jar SqlLexer.g4 java -jar /usr/local/lib64/antlr-4.13.0-complete.jar SqlParser.g4
g++ -std=c++11 main.cpp SqlLexer.cpp SqlParserParser.cpp SqlParserListener.cpp SqlParserBaseListener.cpp \ -I/usr/local/include/antlr4-runtime -L/usr/local/lib64/ \ -Wl,-rpath=/usr/local/lib64/ -lantlr4-runtime -o main t.txt
error in file
You need to compile as (at least) C++17
I want to use cpp to refactor g4 of postgres. g4 can use cpp, but linking with main will result in a bunch of errors. Thank you for asking for help
mk file java -jar /usr/local/lib64/antlr-4.13.0-complete.jar SqlLexer.g4 java -jar /usr/local/lib64/antlr-4.13.0-complete.jar SqlParser.g4
g++ -std=c++11 main.cpp SqlLexer.cpp SqlParserParser.cpp SqlParserListener.cpp SqlParserBaseListener.cpp \ -I/usr/local/include/antlr4-runtime -L/usr/local/lib64/ \ -Wl,-rpath=/usr/local/lib64/ -lantlr4-runtime -o main
t.txt
error in file