[antlr-interest] Re: ANTLR DLL with Visual C++ 6.0 (Java 1.3 grammar and antlr-2.7.2a2)

Fan Yang yhhf_dy at yahoo.com
Wed Nov 20 12:19:34 PST 2002


Hi guys,

I'm trying to generate java parser by using java grammar 1.3(1.18) on 
antlr-2.7.2a2. According to Thomas' suggestion I have got static 
library antlr.lib. then I ran antlr.Tool upon java.g and java.tree.g 
and got cpp and hpp files. So far, so good. but when I try to compile 
this project in order to get java parser, I got following errors. 
Would you please tell me what's the problem and how to fix it. thanks 
a lot.

LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of 
other libs; use /NODEFAULTLIB:library

antlr.lib(TreeParser.obj) : error LNK2001: unresolved external 
symbol "public: virtual class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> >  __thiscall 
antlr::ASTNULLType::toStringTree(void)const " (?toStringTree at A
STNULLType at antlr@@UBE?AV?$basic_string at DU?$char_traits at D@std@@V?
$allocator at D@2@@std@@XZ)

antlr.lib(TreeParser.obj) : error LNK2001: unresolved external 
symbol "public: virtual class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> >  __thiscall 
antlr::ASTNULLType::toStringList(void)const " (?toStringList at A
STNULLType at antlr@@UBE?AV?$basic_string at DU?$char_traits at D@std@@V?
$allocator at D@2@@std@@XZ)

antlr.lib(TreeParser.obj) : error LNK2001: unresolved external 
symbol "public: virtual class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> >  __thiscall 
antlr::ASTNULLType::toString(void)const " (?toString at ASTNULLTy
pe at antlr@@UBE?AV?$basic_string at DU?$char_traits at D@std@@V?
$allocator at D@2@@std@@XZ)

antlr.lib(TreeParser.obj) : error LNK2001: unresolved external 
symbol "public: virtual void __thiscall antlr::ASTNULLType::setType
(int)" (?setType at ASTNULLType@antlr@@UAEXH at Z)

antlr.lib(TreeParser.obj) : error LNK2001: unresolved external 
symbol "public: virtual void __thiscall antlr::ASTNULLType::setText
(class std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > const &)" (?setText at ASTNULLTyp
e at antlr@@UAEXABV?$basic_string at DU?$char_traits at D@std@@V?
$allocator at D@2@@std@@@Z)

...

Debug/JavaJourney.exe : fatal error LNK1120: 24 unresolved externals
Error executing link.exe.

JavaParser.exe - 25 error(s), 6 warning(s)


 

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



More information about the antlr-interest mailing list