[antlr-interest] using antlr 2.7.5 with vc++ 6.0, please help
Ric Klaren
ric.klaren at gmail.com
Wed Jun 29 14:58:19 PDT 2005
Mert Sanver wrote:
> 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)
> ....................
How did you build the support library (configure build or manually
created project)? Are you building/linking your project with the same
options (for as far as they're relevant?)
No antlr dll I hope?
Cheers,
Ric
More information about the antlr-interest
mailing list