GCC undefined reference to `non-virtual thunk to antlr4::Lexer::getSourceName[abi:cxx11]()'
- Dominant language
- Java
- Stars
- 19k
- Forks
- 3.5k
- PR merge metrics
- No merged PRs in 30d
Description
This appears to be related to #1601.
That issue was fixed and went into version 4.7
I'm running version 4.7.1 with GCC 7.3.0 and seeing the same problem.
The example reproducing the problem is here https://github.com/ThetaSinner/echelon-unicode-parser at commit 8.
You can see the details of my environment in /env/Dockerfile of that repository.
I'm sure that my linker is configured correctly.
- GCC's ld is able to find the library
- If I remove the link to the antlr library then I get hundreds of linker errors - so it really is trying to link
Contributor guide
Research direction
Start with the linked echelon-unicode-parser reproduction at commit 8 and inspect its /env/Dockerfile to reproduce the undefined reference using GCC 7.3.0 and ANTLR 4.7.1. Compare the failure with issue #1601; the work is complete when the example links successfully without the non-virtual thunk error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100