Closed vega0 closed 1 year ago
You generated the recognizers using Antlr 4.9.2, but that's all we know. The .zip file contains a bunch of .cpp, .h, .interp, and .tokens files--but that's it. That leaves nothing left in figuring out how you are actually building your program in Build.sh. A program is more than just C++ source files.
You generated the recognizers using Antlr 4.9.2, but that's all we know. The .zip file contains a bunch of .cpp, .h, .interp, and .tokens files--but that's it. That leaves nothing left in figuring out how you are actually building your program in Build.sh. A program is more than just C++ source files.
gcc -Lantlr4/runtime/Cpp/dist -lantlr4-runtime -IСборка/ -Iantlr4/runtime/Cpp/runtime/src/ Main.cpp Сборка/*.cpp
You generated the recognizers using Antlr 4.9.2, but that's all we know. The .zip file contains a bunch of .cpp, .h, .interp, and .tokens files--but that's it. That leaves nothing left in figuring out how you are actually building your program in Build.sh. A program is more than just C++ source files.
It is because you aren't using the correct Antlr runtime version with the tool that you used to generate the recognizers (I just verified; also, 4.9.1 != 4.9.2). I suggest you clone the repo, git checkout 5e5b6d3
(version 4.9.2), and compare the source you are using against what you got through the git clone/checkout
. You can also check by compiling against the clone repo source and see that it works.
You should get in the habit of doing "due diligence" after each step. In general, I do not trust a single thing that I do. I have to check and recheck everything. Writing software has been that way since at least as long as I've been writing software, 48 years. You might also want to check gcc --version
and make sure that you are up-to-date. When you report an error, you should get in the habit of reporting the versions of Antlr, toolchains, OS, etc.
ah, ok.
Сборка.zip