[antlr-interest] C++ Undefined References

Gary L. Schaps <gschaps at attbi.com> gschaps at attbi.com
Thu Feb 27 11:22:14 PST 2003


I'm trying to bring up a small compiler front end which I just moved 
from Windows (works) to Linux (breaks).  The problem is undefined 
references.

main.cpp
---------
#include MYLexer.hpp
....
MYLexer lexer(file);

MYLexer.hpp
------------
...
class MYLexer : public ANTLR_USE_NAMESPACE(antlr) CharScanner, public 
MYTokenTypes {
...
     public MYLexer(ANTLR_USE_NAMESPACE(std) istream& in);
...

linker error
------------
main.cpp: undefined reference to `MYLexer::MYLexer(std::istream&)

Does anyone see through this problem?  It is symptomatic of alot
of undefined references I see, and it's impeding my development.

Thanks.

Gary Schaps


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list