<div dir="rtl"><div dir="ltr">When does this error happens, when building clang or when building your own project?</div><div dir="ltr"><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div dir="ltr">
2014-06-08 18:35 GMT+03:00 Kim <span dir="ltr"><<a href="mailto:soldoutseashell@gmail.com" target="_blank">soldoutseashell@gmail.com</a>></span>:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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?<br>
<br>
Error 305 error LNK2019: unresolved external symbol "public: class llvm::error_code __thiscall llvm::IndexedInstrProfReader::<u></u>getFunctionCounts(class llvm::StringRef,unsigned __int64 &,class std::vector<unsigned __int64,class std::allocator<unsigned __int64> > &)" (?getFunctionCounts@<u></u>IndexedInstrProfReader@llvm@@<u></u>QAE?AVerror_code@2@VStringRef@<u></u>2@AA_KAAV?$vector@_KV?$<u></u>allocator@_K@std@@@std@@@Z) referenced in function "private: void __thiscall clang::CodeGen::CodeGenPGO::<u></u>loadRegionCounts(class llvm::IndexedInstrProfReader *)" (?loadRegionCounts@CodeGenPGO@<u></u>CodeGen@clang@@<u></u>AAEXPAVIndexedInstrProfReader@<u></u>llvm@@@Z) <br>
<br>
Error 304 error LNK2019: unresolved external symbol "public: static class llvm::error_code __cdecl llvm::IndexedInstrProfReader::<u></u>create(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::unique_ptr<class llvm::IndexedInstrProfReader,<u></u>struct std::default_delete<class llvm::IndexedInstrProfReader> > &)" (?create@<u></u>IndexedInstrProfReader@llvm@@<u></u>SA?AVerror_code@2@V?$basic_<u></u>string@DU?$char_traits@D@std@@<u></u>V?$allocator@D@2@@std@@AAV?$<u></u>unique_ptr@<u></u>VIndexedInstrProfReader@llvm@@<u></u>U?$default_delete@<u></u>VIndexedInstrProfReader@llvm@@<u></u>@std@@@5@@Z) referenced in function "public: __thiscall clang::CodeGen::CodeGenModule:<u></u>:CodeGenModule(class clang::ASTContext &,class clang::CodeGenOptions const &,class llvm::Module &,class llvm::DataLayout const &,class clang::DiagnosticsEngine &)" (??0CodeGenModule@CodeGen@<u></u>clang@@QAE@AAVASTContext@2@<u></u>ABVCodeGenOptions@2@AAVModule@<u></u>llvm@@ABVDataLayout@6@<u></u>AAVDiagnosticsEngine@2@@Z) <br>
<div class="HOEnZb"><div class="h5">
______________________________<u></u>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div>