[antlr-interest] Problem linking C++ parser on Tru64 Unix 5.1

McCall, Kurt Kurt.E.McCall at nasa.gov
Tue Feb 1 14:08:26 PST 2005


Hi,

I'm getting a lot linker errors after compiling my parser.  I'm not sure if
I have made a mistake in the use of the linker, or if the archive libantlr.a
didn't "make" correctly.  Do any of these errors look familiar?

Thanks,
Kurt

ld:
Unresolved:
The virtual table '__vtbl_5antlr20RecognitionException__5antlr' for class
'antlr::RecognitionException' is undefined, make sure that the first
noninlined virtual member function is defined.  
The virtual table '__vtbl_5antlr23MismatchedCharException__5antlr' for class
'antlr::MismatchedCharException' is undefined, make sure that the first
noninlined virtual member function is defined.  
The virtual table '__vtbl_5antlr11CharScanner__5antlr' for class
'antlr::CharScanner' is undefined, make sure that the first noninlined
virtual member function is defined.  
antlr::CharScanner::consume(void)
antlr::CharScanner::panic(void)
antlr::CharScanner::panic(const std::basic_string<char,
std::char_traits<char>, std::allocator<char> >&)
antlr::CharScanner::reportError(const antlr::RecognitionException&)
antlr::CharScanner::reportError(const std::basic_string<char,
std::char_traits<char>, std::allocator<char> >&)
antlr::CharScanner::reportWarning(const std::basic_string<char,
std::char_traits<char>, std::allocator<char> >&)
antlr::CharScanner::traceIndent(void)
antlr::CharScanner::traceIn(const char*)
antlr::CharScanner::traceOut(const char*)
The virtual table '__vtbl_5antlr27NoViableAltForCharException__5antlr' for
class 'antlr::NoViableAltForCharException' is undefined, make sure that the
first noninlined virtual member function is defined.  
antlr::nullToken
antlr::CharScanner::CharScanner(antlr::InputBuffer*, bool)
antlr::CharBuffer::CharBuffer(std::basic_istream<char,
std::char_traits<char> >&)
antlr::CharScanner::CharScanner(antlr::InputBuffer&, bool)
antlr::CharScanner::CharScanner(const
antlr::RefCount<antlr::LexerInputState>&, bool)
antlr::BitSet::member(unsigned int) const 
antlr::NoViableAltForCharException::NoViableAltForCharException(int, const
std::basic_string<char, std::char_traits<char>, std::allocator<char> >&,
int, int)
antlr::BitSet::~BitSet(void)
antlr::MismatchedCharException::MismatchedCharException(int, int, bool,
antlr::CharScanner*)
antlr::MismatchedCharException::MismatchedCharException(int, antlr::BitSet,
bool, antlr::CharScanner*)
antlr::MismatchedCharException::MismatchedCharException(int, int, int, bool,
antlr::CharScanner*)
antlr::BitSet::BitSet(const unsigned long*, unsigned int)
The virtual table '__vtbl_5antlr9LLkParser__5antlr' for class
'antlr::LLkParser' is undefined, make sure that the first noninlined virtual
member function is defined.  
antlr::Parser::consumeUntil(int)
antlr::Parser::consumeUntil(const antlr::BitSet&)
antlr::Parser::match(int)
antlr::Parser::matchNot(int)
antlr::Parser::match(const antlr::BitSet&)
antlr::Parser::reportError(const antlr::RecognitionException&)
antlr::Parser::reportError(const std::basic_string<char,
std::char_traits<char>, std::allocator<char> >&)
antlr::Parser::reportWarning(const std::basic_string<char,
std::char_traits<char>, std::allocator<char> >&)
antlr::Parser::panic(void)
antlr::Parser::traceIndent(void)
antlr::LLkParser::traceIn(const char*)
antlr::LLkParser::traceOut(const char*)
The virtual table '__vtbl_5antlr20NoViableAltException__5antlr' for class
'antlr::NoViableAltException' is undefined, make sure that the first
noninlined virtual member function is defined.  
antlr::LLkParser::LLkParser(antlr::TokenBuffer&, int)
antlr::LLkParser::LLkParser(antlr::TokenStream&, int)
antlr::LLkParser::LLkParser(const antlr::RefCount<antlr::ParserInputState>&,
int)
antlr::NoViableAltException::NoViableAltException(antlr::RefCount<antlr::Tok
en>, const std::basic_string<char, std::char_traits<char>,
std::allocator<char> >&)
antlr::ASTRef::getRef(const antlr::AST*)
antlr::ASTRef::~ASTRef(void)
antlr::TokenBuffer::mark(void)
antlr::TokenBuffer::rewind(unsigned int)
antlr::TokenBuffer::LA(unsigned int)
antlr::TokenBuffer::LT(unsigned int)
antlr::Parser::~Parser(void)


-------------------------------------
Kurt McCall
Modeling and Simulation Branch / EV43
NASA MSFC
(256) 961-4501

Pink Froyd Rules!
(it's a joke, people!)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20050201/1e2f95f5/attachment.html


More information about the antlr-interest mailing list