antlr / antlr4

ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.
http://antlr.org
BSD 3-Clause "New" or "Revised" License
17.11k stars 3.28k forks source link

4.7 Cpp demo fails to build on Mac #2110

Open huperniketes opened 6 years ago

huperniketes commented 6 years ago

After updating and running generate.sh with antlr-4.7-complete.jar, I attempted to build the Cpp demo with Xcode 8.3.3. It failed with the following error

/Users/huperniketes/Documents/extern/Libraries/PlatformNeutral/antlr4/runtime/Cpp/demo/generated/TLexer.h:55:43: 'getChannelNames' marked 'override' but does not override any member functions

Removing the 'override' keyword from the member function resulted in a crash of the built demo.

mike-lischke commented 6 years ago

You probably have wrong header files or the wrong source code. I just built the demo without any trouble, once I had adjusted the generate.sh script to use the latest jar.