[antlr-interest] using antlr 2.7.5 with vc++ 6.0, please help

Mert Sanver sanvermert at yahoo.com
Wed Jun 29 11:04:43 PDT 2005


Hi All,
 
We need to develop an application using ms vc++ 6.0 and antlr 2.7.5 tool, however we couldn't figure out how to get started. I tried everything I know within last 48 hours but still it does not work. All the files (antlr generated lexer,parser and main.cpp) compiled but vc++ can not do the link operation. It gives errors like below ;
 
libcpd.lib(locale.obj) : error LNK2005: "public: static class std::locale::id std::num_put<char,class std::ostreambuf_iterator<char,struct std::char_traits<char> > >::id" (?id@?$num_put at DV?$ostreambuf_iterator at DU?$char_traits at D@std@@@std@@@std@@2V0l
ocale at 2@A) already defined in antlr.lib(CharScanner.obj)
LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library
antlr.lib(String.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen at _String_base@std@@QBEXXZ)
antlr.lib(BaseAST.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen at _String_base@std@@QBEXXZ)
antlr.lib(InputBuffer.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen at _String_base@std@@QBEXXZ)
....................
 
I would appreciate if anyone can help. Thanx to all in advance,
 
Best Regards,
 
Mert
 
 

		
---------------------------------
Yahoo! Sports
 Rekindle the Rivalries. Sign up for Fantasy Football
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20050629/cc60e5bc/attachment-0001.html


More information about the antlr-interest mailing list