[cfe-dev] Clang linking errors (visual studio 2013)
Kim
soldoutseashell at gmail.com
Sun Jun 8 08:35:22 PDT 2014
I made a fresh VS project to test things out and as expected I can link
to the clangCodeGen library fine. Looks like I may have a weird bug
occurring in my actual project. Very bad news for me. Anyone have any
ideas about why this might be happening?
Error 305 error LNK2019: unresolved external symbol "public: class
llvm::error_code __thiscall
llvm::IndexedInstrProfReader::getFunctionCounts(class
llvm::StringRef,unsigned __int64 &,class std::vector<unsigned
__int64,class std::allocator<unsigned __int64> > &)"
(?getFunctionCounts at IndexedInstrProfReader@llvm@@QAE?AVerror_code at 2@VStringRef at 2@AA_KAAV?$vector at _KV?$allocator at _K@std@@@std@@@Z)
referenced in function "private: void __thiscall
clang::CodeGen::CodeGenPGO::loadRegionCounts(class
llvm::IndexedInstrProfReader *)"
(?loadRegionCounts at CodeGenPGO@CodeGen at clang@@AAEXPAVIndexedInstrProfReader at llvm@@@Z)
Error 304 error LNK2019: unresolved external symbol "public:
static class llvm::error_code __cdecl
llvm::IndexedInstrProfReader::create(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,class
std::unique_ptr<class llvm::IndexedInstrProfReader,struct
std::default_delete<class llvm::IndexedInstrProfReader> > &)"
(?create at IndexedInstrProfReader@llvm@@SA?AVerror_code at 2@V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@AAV?$unique_ptr at VIndexedInstrProfReader@llvm@@U?$default_delete at VIndexedInstrProfReader@llvm@@@std@@@5@@Z)
referenced in function "public: __thiscall
clang::CodeGen::CodeGenModule::CodeGenModule(class clang::ASTContext
&,class clang::CodeGenOptions const &,class llvm::Module &,class
llvm::DataLayout const &,class clang::DiagnosticsEngine &)"
(??0CodeGenModule at CodeGen@clang@@QAE at AAVASTContext@2 at ABVCodeGenOptions@2 at AAVModule@llvm@@ABVDataLayout at 6@AAVDiagnosticsEngine at 2@@Z)
More information about the cfe-dev
mailing list