[antlr-interest] ANTLR + VC6, problem

Abdullah Sowayan sowayaa at isis.vanderbilt.edu
Mon Jul 18 13:23:54 PDT 2005


Hi,
I'm new to ANTLR. I'm just trying to get it to work. I'm using ANTLR 2.7.5
 
I included the static library antlr.lib in the project file under VC++6.
 
When I compile, here is what I get: Does anyone know how I can fix this?
 
Thanks
 
 
Deleting intermediate files and output files for project 'Antlr - Win32 Debug'.
--------------------Configuration: Antlr - Win32 Debug--------------------
Compiling...
Main.cpp
SupportTest.cpp
Linking...
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(LLkParser.obj)
libcpd.lib(locale.obj) : error LNK2005: "public: static class std::locale::id std::numpunct<char>::id" (?id@?$numpunct at D@std@@2V0locale at 2@A) already defined in antlr.lib(LLkParser.obj)
LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library
antlr.lib(CommonAST.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran at _String_base@std@@QBEXXZ)
antlr.lib(String.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran at _String_base@std@@QBEXXZ)
antlr.lib(BitSet.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran at _String_base@std@@QBEXXZ)
antlr.lib(MismatchedTokenException.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran at _String_base@std@@QBEXXZ)
antlr.lib(RecognitionException.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran at _String_base@std@@QBEXXZ)
antlr.lib(TokenBuffer.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran at _String_base@std@@QBEXXZ)
antlr.lib(ASTFactory.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran at _String_base@std@@QBEXXZ)
antlr.lib(BaseAST.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran at _String_base@std@@QBEXXZ)
antlr.lib(LLkParser.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran at _String_base@std@@QBEXXZ)
antlr.lib(Parser.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran at _String_base@std@@QBEXXZ)
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(MismatchedTokenException.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen at _String_base@std@@QBEXXZ)
antlr.lib(RecognitionException.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen at _String_base@std@@QBEXXZ)
antlr.lib(TokenBuffer.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen at _String_base@std@@QBEXXZ)
antlr.lib(CommonAST.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen at _String_base@std@@QBEXXZ)
antlr.lib(ASTFactory.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(LLkParser.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen at _String_base@std@@QBEXXZ)
antlr.lib(BitSet.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen at _String_base@std@@QBEXXZ)
antlr.lib(LLkParser.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::locale::facet::_Register(void)" (?_Register at facet@locale at std@@QAEXXZ)
antlr.lib(LLkParser.obj) : error LNK2001: unresolved external symbol "public: __thiscall bad_cast::bad_cast(char const *)" (??0bad_cast@@QAE at PBD@Z)
antlr.lib(LLkParser.obj) : error LNK2001: unresolved external symbol "public: class std::locale::facet const * __thiscall std::locale::_Getfacet(unsigned int)const " (?_Getfacet at locale@std@@QBEPBVfacet at 12@I at Z)
antlr.lib(LLkParser.obj) : error LNK2001: unresolved external symbol "void __cdecl operator delete[](void *)" (??_V at YAXPAX@Z)
antlr.lib(LLkParser.obj) : error LNK2001: unresolved external symbol "void * __cdecl operator new[](unsigned int)" (??_U at YAPAXI@Z)
Debug/Antlr.exe : fatal error LNK1120: 7 unresolved externals
Error executing link.exe.
Antlr.exe - 27 error(s), 1 warning(s)
<mailto:antlr-interest at antlr.org> 


More information about the antlr-interest mailing list