Problems using antlr4 in Qt6

12 views
Skip to first unread message

Jose Angel

unread,
Feb 6, 2025, 7:16:18 AMFeb 6
to antlr-discussion
I want to make a Qt project with cpp that parses a language using antlr. I ahve generated the files (parser, lexxer, etc) acording to a grammar but i cant link the antlr runtime library required and i dont know what to do. So far i get thoused of undefined reference errors.



I am using CMake for the Qt project. Any help si appreciated thanks.

Ge Hu

unread,
Feb 6, 2025, 5:52:24 PMFeb 6
to antlr-discussion
Jose,

Is it possible to see your build commands (and where antlr-runtime is located)?

George

Reply all
Reply to author
Forward
0 new messages