[cfe-dev] Unresolved llvm symbols

Kim Gadecki via cfe-dev cfe-dev at lists.llvm.org
Mon Sep 25 21:25:35 PDT 2017


Never mind, fixed it.

On 26/09/2017 12:05 PM, Kim Gadecki via cfe-dev wrote:
> Hi guys,
>
> Can anyone tell me which libs I'm missing here? Thanks a lot in advance.
>
>
> >LLVMAsmPrinter.lib(DwarfAccelTable.cpp.obj) : error LNK2001: 
> unresolved external symbol "class llvm::StringRef __cdecl 
> llvm::dwarf::TagString(unsigned int)" 
> (?TagString at dwarf@llvm@@YA?AVStringRef at 2@I at Z)
> 1>LLVMAnalysis.lib(ModuleDebugInfoPrinter.cpp.obj) : error LNK2001: 
> unresolved external symbol "class llvm::StringRef __cdecl 
> llvm::dwarf::TagString(unsigned int)" 
> (?TagString at dwarf@llvm@@YA?AVStringRef at 2@I at Z)
> 1>LLVMCore.lib(AsmWriter.cpp.obj) : error LNK2001: unresolved external 
> symbol "class llvm::StringRef __cdecl llvm::dwarf::TagString(unsigned 
> int)" (?TagString at dwarf@llvm@@YA?AVStringRef at 2@I at Z)
> 1>LLVMAsmPrinter.lib(AsmPrinterDwarf.cpp.obj) : error LNK2001: 
> unresolved external symbol "class llvm::StringRef __cdecl 
> llvm::dwarf::TagString(unsigned int)" 
> (?TagString at dwarf@llvm@@YA?AVStringRef at 2@I at Z)
> 1>LLVMAsmPrinter.lib(DIE.cpp.obj) : error LNK2001: unresolved external 
> symbol "class llvm::StringRef __cdecl llvm::dwarf::TagString(unsigned 
> int)" (?TagString at dwarf@llvm@@YA?AVStringRef at 2@I at Z)
> 1>LLVMAnalysis.lib(ModuleDebugInfoPrinter.cpp.obj) : error LNK2019: 
> unresolved external symbol "class llvm::StringRef __cdecl 
> llvm::dwarf::AttributeEncodingString(unsigned int)" 
> (?AttributeEncodingString at dwarf@llvm@@YA?AVStringRef at 2@I at Z) referenced 
> in function "public: virtual void __thiscall `anonymous 
> namespace'::ModuleDebugInfoPrinter::print(class llvm::raw_ostream 
> &,class llvm::Module const *)const " 
> (?print at ModuleDebugInfoPrinter@?A0xba39c198@@UBEXAAVraw_ostream at llvm@@PBVModule at 4@@Z)
> 1>LLVMCore.lib(AsmWriter.cpp.obj) : error LNK2001: unresolved external 
> symbol "class llvm::StringRef __cdecl 
> llvm::dwarf::AttributeEncodingString(unsigned int)" 
> (?AttributeEncodingString at dwarf@llvm@@YA?AVStringRef at 2@I at Z)
> 1>LLVMAnalysis.lib(ModuleDebugInfoPrinter.cpp.obj) : error LNK2019: 
> unresolved external symbol "class llvm::StringRef __cdecl 
> llvm::dwarf::LanguageString(unsigned int)" 
> (?LanguageString at dwarf@llvm@@YA?AVStringRef at 2@I at Z) referenced in 
> function "public: virtual void __thiscall `anonymous 
> namespace'::ModuleDebugInfoPrinter::print(class llvm::raw_ostream 
> &,class llvm::Module const *)const " 
> (?print at ModuleDebugInfoPrinter@?A0xba39c198@@UBEXAAVraw_ostream at llvm@@PBVModule at 4@@Z)
> 1>LLVMCore.lib(AsmWriter.cpp.obj) : error LNK2001: unresolved external 
> symbol "class llvm::StringRef __cdecl 
> llvm::dwarf::LanguageString(unsigned int)" 
> (?LanguageString at dwarf@llvm@@YA?AVStringRef at 2@I at Z)
> 1>LLVMCore.lib(AsmWriter.cpp.obj) : error LNK2019: unresolved external 
> symbol "class llvm::StringRef __cdecl 
> llvm::dwarf::OperationEncodingString(unsigned int)" 
> (?OperationEncodingString at dwarf@llvm@@YA?AVStringRef at 2@I at Z) referenced 
> in function "void __cdecl writeDIExpression(class llvm::raw_ostream 
> &,class llvm::DIExpression const *,class `anonymous 
> namespace'::TypePrinting *,class llvm::SlotTracker *,class 
> llvm::Module const *)" 
> (?writeDIExpression@@YAXAAVraw_ostream at llvm@@PBVDIExpression at 2@PAVTypePrinting@?A0x21b09e68@@PAVSlotTracker at 2@PBVModule at 2@@Z)
> 1>LLVMAsmPrinter.lib(AsmPrinter.cpp.obj) : error LNK2001: unresolved 
> external symbol "class llvm::StringRef __cdecl 
> llvm::dwarf::OperationEncodingString(unsigned int)" 
> (?OperationEncodingString at dwarf@llvm@@YA?AVStringRef at 2@I at Z)
> 1>LLVMAsmPrinter.lib(DwarfDebug.cpp.obj) : error LNK2001: unresolved 
> external symbol "class llvm::StringRef __cdecl 
> llvm::dwarf::OperationEncodingString(unsigned int)" 
> (?OperationEncodingString at dwarf@llvm@@YA?AVStringRef at 2@I at Z)
> 1>LLVMCore.lib(AsmWriter.cpp.obj) : error LNK2019: unresolved external 
> symbol "class llvm::StringRef __cdecl 
> llvm::dwarf::VirtualityString(unsigned int)" 
> (?VirtualityString at dwarf@llvm@@YA?AVStringRef at 2@I at Z) referenced in 
> function "void __cdecl writeDISubprogram(class llvm::raw_ostream 
> &,class llvm::DISubprogram const *,class `anonymous 
> namespace'::TypePrinting *,class llvm::SlotTracker *,class 
> llvm::Module const *)" 
> (?writeDISubprogram@@YAXAAVraw_ostream at llvm@@PBVDISubprogram at 2@PAVTypePrinting@?A0x21b09e68@@PAVSlotTracker at 2@PBVModule at 2@@Z)
> 1>LLVMCore.lib(AsmWriter.cpp.obj) : error LNK2019: unresolved external 
> symbol "class llvm::StringRef __cdecl 
> llvm::dwarf::ConventionString(unsigned int)" 
> (?ConventionString at dwarf@llvm@@YA?AVStringRef at 2@I at Z) referenced in 
> function "void __cdecl writeDISubroutineType(class llvm::raw_ostream 
> &,class llvm::DISubroutineType const *,class `anonymous 
> namespace'::TypePrinting *,class llvm::SlotTracker *,class 
> llvm::Module const *)" 
> (?writeDISubroutineType@@YAXAAVraw_ostream at llvm@@PBVDISubroutineType at 2@PAVTypePrinting@?A0x21b09e68@@PAVSlotTracker at 2@PBVModule at 2@@Z)
> 1>LLVMCore.lib(AsmWriter.cpp.obj) : error LNK2019: unresolved external 
> symbol "class llvm::StringRef __cdecl 
> llvm::dwarf::MacinfoString(unsigned int)" 
> (?MacinfoString at dwarf@llvm@@YA?AVStringRef at 2@I at Z) referenced in 
> function "public: void __thiscall `anonymous 
> namespace'::MDFieldPrinter::printMacinfoType(class llvm::DIMacroNode 
> const *)" 
> (?printMacinfoType at MDFieldPrinter@?A0x21b09e68@@QAEXPBVDIMacroNode at llvm@@@Z)
> 1>LLVMObject.lib(Binary.cpp.obj) : error LNK2019: unresolved external 
> symbol "struct llvm::file_magic __cdecl llvm::identify_magic(class 
> llvm::StringRef)" 
> (?identify_magic at llvm@@YA?AUfile_magic at 1@VStringRef at 1@@Z) referenced 
> in function "class llvm::Expected<class std::unique_ptr<class 
> llvm::object::Binary,struct std::default_delete<class 
> llvm::object::Binary> > > __cdecl llvm::object::createBinary(class 
> llvm::MemoryBufferRef,class llvm::LLVMContext *)" 
> (?createBinary at object@llvm@@YA?AV?$Expected at V?$unique_ptr at VBinary@object at llvm@@U?$default_delete at VBinary@object at llvm@@@std@@@std@@@2 at VMemoryBufferRef@2 at PAVLLVMContext@2@@Z)
> 1>LLVMObject.lib(IRObjectFile.cpp.obj) : error LNK2001: unresolved 
> external symbol "struct llvm::file_magic __cdecl 
> llvm::identify_magic(class llvm::StringRef)" 
> (?identify_magic at llvm@@YA?AUfile_magic at 1@VStringRef at 1@@Z)
> 1>LLVMObject.lib(SymbolicFile.cpp.obj) : error LNK2001: unresolved 
> external symbol "struct llvm::file_magic __cdecl 
> llvm::identify_magic(class llvm::StringRef)" 
> (?identify_magic at llvm@@YA?AUfile_magic at 1@VStringRef at 1@@Z)
> 1>LLVMObject.lib(ObjectFile.cpp.obj) : error LNK2001: unresolved 
> external symbol "struct llvm::file_magic __cdecl 
> llvm::identify_magic(class llvm::StringRef)" 
> (?identify_magic at llvm@@YA?AUfile_magic at 1@VStringRef at 1@@Z)
> 1>LLVMAsmParser.lib(LLParser.cpp.obj) : error LNK2019: unresolved 
> external symbol "unsigned int __cdecl llvm::dwarf::getTag(class 
> llvm::StringRef)" (?getTag at dwarf@llvm@@YAIVStringRef at 2@@Z) referenced 
> in function "private: bool __thiscall 
> llvm::LLParser::ParseMDField<struct `anonymous 
> namespace'::DwarfTagField>(class llvm::SMLoc,class 
> llvm::StringRef,struct `anonymous namespace'::DwarfTagField &)" 
> (??$ParseMDField at UDwarfTagField@?A0x93cd2402@@@LLParser at llvm@@AAE_NVSMLoc at 1@VStringRef at 1@AAUDwarfTagField@?A0x93cd2402@@@Z)
> 1>LLVMAsmParser.lib(LLParser.cpp.obj) : error LNK2019: unresolved 
> external symbol "unsigned int __cdecl 
> llvm::dwarf::getOperationEncoding(class llvm::StringRef)" 
> (?getOperationEncoding at dwarf@llvm@@YAIVStringRef at 2@@Z) referenced in 
> function "private: bool __thiscall 
> llvm::LLParser::ParseDIExpression(class llvm::MDNode * &,bool)" 
> (?ParseDIExpression at LLParser@llvm@@AAE_NAAPAVMDNode at 2@_N at Z)
> 1>LLVMAsmParser.lib(LLParser.cpp.obj) : error LNK2019: unresolved 
> external symbol "unsigned int __cdecl llvm::dwarf::getVirtuality(class 
> llvm::StringRef)" (?getVirtuality at dwarf@llvm@@YAIVStringRef at 2@@Z) 
> referenced in function "private: bool __thiscall 
> llvm::LLParser::ParseMDField<struct `anonymous 
> namespace'::DwarfVirtualityField>(class llvm::SMLoc,class 
> llvm::StringRef,struct `anonymous namespace'::DwarfVirtualityField &)" 
> (??$ParseMDField at UDwarfVirtualityField@?A0x93cd2402@@@LLParser at llvm@@AAE_NVSMLoc at 1@VStringRef at 1@AAUDwarfVirtualityField@?A0x93cd2402@@@Z)
> 1>LLVMAsmParser.lib(LLParser.cpp.obj) : error LNK2019: unresolved 
> external symbol "unsigned int __cdecl llvm::dwarf::getLanguage(class 
> llvm::StringRef)" (?getLanguage at dwarf@llvm@@YAIVStringRef at 2@@Z) 
> referenced in function "private: bool __thiscall 
> llvm::LLParser::ParseMDField<struct `anonymous 
> namespace'::DwarfLangField>(class llvm::SMLoc,class 
> llvm::StringRef,struct `anonymous namespace'::DwarfLangField &)" 
> (??$ParseMDField at UDwarfLangField@?A0x93cd2402@@@LLParser at llvm@@AAE_NVSMLoc at 1@VStringRef at 1@AAUDwarfLangField@?A0x93cd2402@@@Z)
> 1>LLVMAsmParser.lib(LLParser.cpp.obj) : error LNK2019: unresolved 
> external symbol "unsigned int __cdecl 
> llvm::dwarf::getCallingConvention(class llvm::StringRef)" 
> (?getCallingConvention at dwarf@llvm@@YAIVStringRef at 2@@Z) referenced in 
> function "private: bool __thiscall llvm::LLParser::ParseMDField<struct 
> `anonymous namespace'::DwarfCCField>(class llvm::SMLoc,class 
> llvm::StringRef,struct `anonymous namespace'::DwarfCCField &)" 
> (??$ParseMDField at UDwarfCCField@?A0x93cd2402@@@LLParser at llvm@@AAE_NVSMLoc at 1@VStringRef at 1@AAUDwarfCCField@?A0x93cd2402@@@Z) 
>
> 1>LLVMAsmParser.lib(LLParser.cpp.obj) : error LNK2019: unresolved 
> external symbol "unsigned int __cdecl 
> llvm::dwarf::getAttributeEncoding(class llvm::StringRef)" 
> (?getAttributeEncoding at dwarf@llvm@@YAIVStringRef at 2@@Z) referenced in 
> function "private: bool __thiscall llvm::LLParser::ParseMDField<struct 
> `anonymous namespace'::DwarfAttEncodingField>(class llvm::SMLoc,class 
> llvm::StringRef,struct `anonymous namespace'::DwarfAttEncodingField 
> &)" 
> (??$ParseMDField at UDwarfAttEncodingField@?A0x93cd2402@@@LLParser at llvm@@AAE_NVSMLoc at 1@VStringRef at 1@AAUDwarfAttEncodingField@?A0x93cd2402@@@Z)
> 1>LLVMAsmParser.lib(LLParser.cpp.obj) : error LNK2019: unresolved 
> external symbol "unsigned int __cdecl llvm::dwarf::getMacinfo(class 
> llvm::StringRef)" (?getMacinfo at dwarf@llvm@@YAIVStringRef at 2@@Z) 
> referenced in function "private: bool __thiscall 
> llvm::LLParser::ParseMDField<struct `anonymous 
> namespace'::DwarfMacinfoTypeField>(class llvm::SMLoc,class 
> llvm::StringRef,struct `anonymous namespace'::DwarfMacinfoTypeField 
> &)" 
> (??$ParseMDField at UDwarfMacinfoTypeField@?A0x93cd2402@@@LLParser at llvm@@AAE_NVSMLoc at 1@VStringRef at 1@AAUDwarfMacinfoTypeField@?A0x93cd2402@@@Z)
> 1>LLVMAsmPrinter.lib(AsmPrinterDwarf.cpp.obj) : error LNK2019: 
> unresolved external symbol "class llvm::StringRef __cdecl 
> llvm::dwarf::AttributeString(unsigned int)" 
> (?AttributeString at dwarf@llvm@@YA?AVStringRef at 2@I at Z) referenced in 
> function "public: void __thiscall llvm::AsmPrinter::emitDwarfDIE(class 
> llvm::DIE const &)const " 
> (?emitDwarfDIE at AsmPrinter@llvm@@QBEXABVDIE at 2@@Z)
> 1>LLVMAsmPrinter.lib(DIE.cpp.obj) : error LNK2001: unresolved external 
> symbol "class llvm::StringRef __cdecl 
> llvm::dwarf::AttributeString(unsigned int)" 
> (?AttributeString at dwarf@llvm@@YA?AVStringRef at 2@I at Z)
> 1>LLVMAsmPrinter.lib(DIEHash.cpp.obj) : error LNK2001: unresolved 
> external symbol "class llvm::StringRef __cdecl 
> llvm::dwarf::AttributeString(unsigned int)" 
> (?AttributeString at dwarf@llvm@@YA?AVStringRef at 2@I at Z)
> 1>LLVMAsmPrinter.lib(AsmPrinterDwarf.cpp.obj) : error LNK2019: 
> unresolved external symbol "class llvm::StringRef __cdecl 
> llvm::dwarf::AccessibilityString(unsigned int)" 
> (?AccessibilityString at dwarf@llvm@@YA?AVStringRef at 2@I at Z) referenced in 
> function "public: void __thiscall llvm::AsmPrinter::emitDwarfDIE(class 
> llvm::DIE const &)const " 
> (?emitDwarfDIE at AsmPrinter@llvm@@QBEXABVDIE at 2@@Z)
> 1>LLVMAsmPrinter.lib(DwarfDebug.cpp.obj) : error LNK2019: unresolved 
> external symbol "class llvm::StringRef __cdecl 
> llvm::dwarf::GDBIndexEntryKindString(enum 
> llvm::dwarf::GDBIndexEntryKind)" 
> (?GDBIndexEntryKindString at dwarf@llvm@@YA?AVStringRef at 2@W4GDBIndexEntryKind at 12@@Z) 
> referenced in function "private: void __thiscall 
> llvm::DwarfDebug::emitDebugPubSection(bool,class llvm::StringRef,class 
> llvm::DwarfCompileUnit *,class llvm::StringMap<class llvm::DIE const 
> *,class llvm::MallocAllocator> const &)" 
> (?emitDebugPubSection at DwarfDebug@llvm@@AAEX_NVStringRef at 2@PAVDwarfCompileUnit at 2@ABV?$StringMap at PBVDIE@llvm@@VMallocAllocator at 2@@2@@Z)
> 1>LLVMAsmPrinter.lib(DwarfDebug.cpp.obj) : error LNK2019: unresolved 
> external symbol "class llvm::StringRef __cdecl 
> llvm::dwarf::GDBIndexEntryLinkageString(enum 
> llvm::dwarf::GDBIndexEntryLinkage)" 
> (?GDBIndexEntryLinkageString at dwarf@llvm@@YA?AVStringRef at 2@W4GDBIndexEntryLinkage at 12@@Z) 
> referenced in function "private: void __thiscall 
> llvm::DwarfDebug::emitDebugPubSection(bool,class llvm::StringRef,class 
> llvm::DwarfCompileUnit *,class llvm::StringMap<class llvm::DIE const 
> *,class llvm::MallocAllocator> const &)" 
> (?emitDebugPubSection at DwarfDebug@llvm@@AAEX_NVStringRef at 2@PAVDwarfCompileUnit at 2@ABV?$StringMap at PBVDIE@llvm@@VMallocAllocator at 2@@2@@Z)
> 1>LLVMAsmPrinter.lib(DIE.cpp.obj) : error LNK2019: unresolved external 
> symbol "class llvm::StringRef __cdecl 
> llvm::dwarf::ChildrenString(unsigned int)" 
> (?ChildrenString at dwarf@llvm@@YA?AVStringRef at 2@I at Z) referenced in 
> function "public: void __thiscall llvm::DIEAbbrev::Emit(class 
> llvm::AsmPrinter const *)const " 
> (?Emit at DIEAbbrev@llvm@@QBEXPBVAsmPrinter at 2@@Z)
> 1>LLVMAsmPrinter.lib(DIE.cpp.obj) : error LNK2019: unresolved external 
> symbol "class llvm::StringRef __cdecl 
> llvm::dwarf::FormEncodingString(unsigned int)" 
> (?FormEncodingString at dwarf@llvm@@YA?AVStringRef at 2@I at Z) referenced in 
> function "public: void __thiscall llvm::DIEAbbrev::Emit(class 
> llvm::AsmPrinter const *)const " 
> (?Emit at DIEAbbrev@llvm@@QBEXPBVAsmPrinter at 2@@Z)
> 1>LLVMAsmPrinter.lib(DwarfAccelTable.cpp.obj) : error LNK2001: 
> unresolved external symbol "class llvm::StringRef __cdecl 
> llvm::dwarf::FormEncodingString(unsigned int)" 
> (?FormEncodingString at dwarf@llvm@@YA?AVStringRef at 2@I at Z)
> 1>LLVMAsmPrinter.lib(DIE.cpp.obj) : error LNK2019: unresolved external 
> symbol "bool __cdecl llvm::dwarf::isValidFormForVersion(enum 
> llvm::dwarf::Form,unsigned int,bool)" 
> (?isValidFormForVersion at dwarf@llvm@@YA_NW4Form at 12@I_N at Z) referenced in 
> function "public: void __thiscall llvm::DIEAbbrev::Emit(class 
> llvm::AsmPrinter const *)const " 
> (?Emit at DIEAbbrev@llvm@@QBEXPBVAsmPrinter at 2@@Z)
> 1>LLVMAsmPrinter.lib(DwarfAccelTable.cpp.obj) : error LNK2019: 
> unresolved external symbol "class llvm::StringRef __cdecl 
> llvm::dwarf::AtomTypeString(unsigned int)" 
> (?AtomTypeString at dwarf@llvm@@YA?AVStringRef at 2@I at Z) referenced in 
> function "private: void __thiscall 
> llvm::DwarfAccelTable::EmitHeader(class llvm::AsmPrinter *)" 
> (?EmitHeader at DwarfAccelTable@llvm@@AAEXPAVAsmPrinter at 2@@Z)
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev



More information about the cfe-dev mailing list