I'm getting this errors too on FreeBSD with trunk llvm+clang. With any build (configure and CMake).<br><br><div class="gmail_quote">On Fri, Aug 20, 2010 at 10:42 AM, Yahya H. Mirza <span dir="ltr"><<a href="mailto:yahya@aurorasoft.net">yahya@aurorasoft.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">








<div link="blue" vlink="purple" lang="EN-US">

<div>

<p class="MsoNormal">Hi All,</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I’ve been experimenting with a recent build of clang /
llvm.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I downloaded a new trunk following the directions from:</p>

<p class="MsoNormal"><a href="http://clang.llvm.org/get_started.html" target="_blank">http://clang.llvm.org/get_started.html</a></p>

<p class="MsoNormal"><a href="http://wiki.llvm.org/How_do_I_compile_on_Visual_C%2B%2B%3F" target="_blank">http://wiki.llvm.org/How_do_I_compile_on_Visual_C%2B%2B%3F</a></p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Below is my configuration:</p>

<p class="MsoNormal">    Clang / LLVM Build:      111612</p>

<p class="MsoNormal">    OS:                                   Windows7
– 32bit</p>

<p class="MsoNormal">    Dev. Environment:       Visual
Studio 2010</p>

<p class="MsoNormal">    CMake Version:            2.8.0</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I can build fine without errors if I use the default configuration
from the CMake GUI.</p>

<p class="MsoNormal">Nevertheless, I am getting a large number of warnings (173).</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Additionally, when I use the CMake GUI, and when I check the
flags for:</p>

<p style="margin-left: 27.6pt;"><span style="font-family: Symbol;"><span>·<span style="font: 7pt "Times New Roman";">       
</span></span></span>Clang->Examples</p>

<p style="margin-left: 27.6pt;"><span style="font-family: Symbol;"><span>·<span style="font: 7pt "Times New Roman";">       
</span></span></span>llvm->Examples</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I’m getting LNK2019 error (Unresolved external
symbol).</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">It’s essentially not building:</p>

<p style="margin-left: 27.6pt;"><span style="font-family: Symbol;"><span>·<span style="font: 7pt "Times New Roman";">       
</span></span></span>PrintFunctionNames.dll</p>

<p style="margin-left: 27.6pt;"><span style="font-family: Symbol;"><span>·<span style="font: 7pt "Times New Roman";">       
</span></span></span>clang-interpreter.exe</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Is it possible that my CMake configuration is not setup properly
or perhaps an environment variable is not setup properly?</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I’ve spent a  ton of time trying to track this
down, but have had no luck so far….</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I’ve also read all the posts on problems with Visual
Studio 2010 due to Clangs lack of support for C++ 0x, but this doesn’t
look like the cause here, but perhaps I’m wrong…..</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Any suggestions would be appreciated.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Thanks,</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Yahya</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Below is the Visual Studio 2010 output:</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">==============================================================================================</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;"> </span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">73>------ Build started: Project: PrintFunctionNames,
Configuration: Debug Win32 ------</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">73>  Building Custom Rule
C:/llvm/tools/clang/examples/PrintFunctionNames/CMakeLists.txt</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">73>  CMake does not need to re-run because
CMakeFiles/generate.stamp is up-to-date.</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">73>  PrintFunctionNames.cpp</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">63>  SelectionDAG.cpp</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">51>  SemaTemplateDeduction.cpp</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">72>     Creating library
C:/llvm/llvm-vs10/lib/Debug/ModuleMaker.lib and object
C:/llvm/llvm-vs10/lib/Debug/ModuleMaker.exp</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">63>  SelectionDAGBuilder.cpp</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">51>  SemaTemplateInstantiate.cpp</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">73>PrintFunctionNames.obj : error LNK2019: unresolved
external symbol "private: void __thiscall
clang::APValue::MakeUninit(void)" (?MakeUninit@APValue@clang@@AAEXXZ)
referenced in function "public: __thiscall clang::APValue::~APValue(void)"
(??1APValue@clang@@QAE@XZ)</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">73>PrintFunctionNames.obj : error LNK2001: unresolved
external symbol "protected: virtual void __thiscall
clang::ASTFrontendAction::ExecuteAction(void)"
(?ExecuteAction@ASTFrontendAction@clang@@MAEXXZ)</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">73>PrintFunctionNames.obj : error LNK2019: unresolved
external symbol "public: unsigned int __thiscall
clang::Diagnostic::getCustomDiagID(enum clang::Diagnostic::Level,class
llvm::StringRef)"
(?getCustomDiagID@Diagnostic@clang@@QAEIW4Level@12@VStringRef@llvm@@@Z) referenced
in function "protected: virtual bool __thiscall `anonymous
namespace'::PrintFunctionNamesAction::ParseArgs(class clang::CompilerInstance
const &,class std::vector<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,class std::allocator<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > > > const &)"
(?ParseArgs@PrintFunctionNamesAction@?A0xce229623@@MAE_NABVCompilerInstance@clang@@ABV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@@Z)</span></p>


<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">73>PrintFunctionNames.obj : error LNK2019: unresolved
external symbol "class llvm::raw_ostream & __cdecl
llvm::errs(void)" (?errs@llvm@@YAAAVraw_ostream@1@XZ) referenced in
function "protected: virtual bool __thiscall `anonymous
namespace'::PrintFunctionNamesAction::ParseArgs(class clang::CompilerInstance
const &,class std::vector<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,class
std::allocator<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > > >
const &)"
(?ParseArgs@PrintFunctionNamesAction@?A0xce229623@@MAE_NABVCompilerInstance@clang@@ABV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@@Z)</span></p>


<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">73>PrintFunctionNames.obj : error LNK2019: unresolved
external symbol "public: bool __thiscall
clang::DiagnosticBuilder::Emit(void)" (?Emit@DiagnosticBuilder@clang@@QAE_NXZ)
referenced in function "public: __thiscall
clang::DiagnosticBuilder::~DiagnosticBuilder(void)"
(??1DiagnosticBuilder@clang@@QAE@XZ)</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">73>PrintFunctionNames.obj : error LNK2019: unresolved
external symbol "public: class llvm::raw_ostream & __thiscall
llvm::raw_ostream::write(char const *,unsigned int)"
(?write@raw_ostream@llvm@@QAEAAV12@PBDI@Z) referenced in function "public:
class llvm::raw_ostream & __thiscall
llvm::raw_ostream::operator<<(class llvm::StringRef)" (??6raw_ostream@llvm@@QAEAAV01@VStringRef@1@@Z)</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">73>PrintFunctionNames.obj : error LNK2001: unresolved
external symbol "public: virtual void __thiscall
clang::ASTConsumer::HandleInterestingDecl(class clang::DeclGroupRef)"
(?HandleInterestingDecl@ASTConsumer@clang@@UAEXVDeclGroupRef@2@@Z)</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">73>PrintFunctionNames.obj : error LNK2001: unresolved
external symbol "public: virtual void __thiscall
clang::ASTConsumer::HandleTopLevelDecl(class clang::DeclGroupRef)"
(?HandleTopLevelDecl@ASTConsumer@clang@@UAEXVDeclGroupRef@2@@Z)</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">73>PrintFunctionNames.obj : error LNK2019: unresolved
external symbol "public: class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > __thiscall
clang::DeclarationName::getAsString(void)const " (?getAsString@DeclarationName@clang@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
referenced in function "public: class
std::basic_string<char,structstd::char_traits<char>,class
std::allocator<char> > __thiscall clang::NamedDecl::getNameAsString(void)const
"
(?getNameAsString@NamedDecl@clang@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">73>PrintFunctionNames.obj : error LNK2019: unresolved
external symbol "public: __thiscall
clang::FrontendAction::FrontendAction(void)" (??0FrontendAction@clang@@QAE@XZ)
referenced in function "public: __thiscall
clang::ASTFrontendAction::ASTFrontendAction(void)"
(??0ASTFrontendAction@clang@@QAE@XZ)</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">73>PrintFunctionNames.obj : error LNK2019: unresolved
external symbol "public: virtual __thiscall clang::FrontendAction::~FrontendAction(void)"
(??1FrontendAction@clang@@UAE@XZ) referenced in function "public: virtual
__thiscall clang::ASTFrontendAction::~ASTFrontendAction(void)"
(??1ASTFrontendAction@clang@@UAE@XZ)</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">73>C:\AuroraSoft\Development_Projects\LLVM_Projects\llvm\llvm-vs10\lib\Debug\PrintFunctionNames.dll
: fatal error LNK1120: 11 unresolved externals</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;"> </span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">==============================================================================================</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;"> </span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">85>------ Build started: Project: clang-interpreter,
Configuration: Debug Win32 ------</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">86>------ Build started: Project: Fibonacci,
Configuration: Debug Win32 ------</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">85>  Building Custom Rule
C:/llvm/tools/clang/examples/clang-interpreter/CMakeLists.txt</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">85>  CMake does not need to re-run because
CMakeFiles/generate.stamp is up-to-date.</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">85>  main.cpp</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">86>  Building Custom Rule
C:/llvm/examples/Fibonacci/CMakeLists.txt</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">86>  CMake does not need to re-run because
CMakeFiles/generate.stamp is up-to-date.</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">86>  fibonacci.cpp</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">86>     Creating library
C:/llvm/llvm-vs10/lib/Debug/Fibonacci.lib and object
C:/llvm/llvm-vs10/lib/Debug/Fibonacci.exp</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">79>     Creating library
C:/llvm/llvm-vs10/lib/Debug/libclang.lib and object
C:/llvm/llvm-vs10/lib/Debug/libclang.exp</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">86>     Creating library
C:/llvm/llvm-vs10/lib/Debug/Fibonacci.lib and object
C:/llvm/llvm-vs10/lib/Debug/Fibonacci.exp</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">85>     Creating library
C:/llvm/llvm-vs10/lib/Debug/clang-interpreter.lib and object
C:/llvm/llvm-vs10/lib/Debug/clang-interpreter.exp</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">85>clangFrontend.lib(CompilerInstance.obj) : error
LNK2019: unresolved external symbol "public: enum
clang::ASTReader::ASTReadResult __thiscall clang::ASTReader::ReadAST(class
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char>
> const &)"
(?ReadAST@ASTReader@clang@@QAE?AW4ASTReadResult@12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
referenced in function "public: static class clang::ExternalASTSource *
__cdecl clang::CompilerInstance::createPCHExternalASTSource(class
llvm::StringRef,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const
&,bool,class clang::Preprocessor &,class clang::ASTContext &,void
*)" (?createPCHExternalASTSource@CompilerInstance@clang@@SAPAVExternalASTSource@2@VStringRef@llvm@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_NAAVPreprocessor@2@AAVASTContext@2@PAX@Z)</span></p>


<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">85>clangFrontend.lib(ASTUnit.obj) : error LNK2001:
unresolved external symbol "public: enum clang::ASTReader::ASTReadResult
__thiscall clang::ASTReader::ReadAST(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const
&)"
(?ReadAST@ASTReader@clang@@QAE?AW4ASTReadResult@12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">85>clangFrontend.lib(CompilerInstance.obj) : error
LNK2019: unresolved external symbol "public: void __thiscall
clang::ASTReader::setDeserializationListener(class
clang::ASTDeserializationListener *)"
(?setDeserializationListener@ASTReader@clang@@QAEXPAVASTDeserializationListener@2@@Z)
referenced in function "public: static class clang::ExternalASTSource *
__cdecl clang::CompilerInstance::createPCHExternalASTSource(class
llvm::StringRef,class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &,bool,class clang::Preprocessor
&,class clang::ASTContext &,void *)"
(?createPCHExternalASTSource@CompilerInstance@clang@@SAPAVExternalASTSource@2@VStringRef@llvm@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_NAAVPreprocessor@2@AAVASTContext@2@PAX@Z)</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">85>clangFrontend.lib(CompilerInstance.obj) : error
LNK2019: unresolved external symbol "public: __thiscall
clang::ASTReader::ASTReader(class clang::Preprocessor &,class
clang::ASTContext *,char const *,bool)" (??0ASTReader@clang@@QAE@AAVPreprocessor@1@PAVASTContext@1@PBD_N@Z)
referenced in function "public: static class clang::ExternalASTSource *
__cdecl clang::CompilerInstance::createPCHExternalASTSource(class
llvm::StringRef,class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &,bool,class clang::Preprocessor
&,class clang::ASTContext &,void *)"
(?createPCHExternalASTSource@CompilerInstance@clang@@SAPAVExternalASTSource@2@VStringRef@llvm@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_NAAVPreprocessor@2@AAVASTContext@2@PAX@Z)</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">85>clangFrontend.lib(CompilerInvocation.obj) : error
LNK2019: unresolved external symbol "public: static class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > __cdecl
clang::ASTReader::getOriginalSourceFile(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const
&,class clang::Diagnostic &)"
(?getOriginalSourceFile@ASTReader@clang@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV34@AAVDiagnostic@2@@Z)
referenced in function "void __cdecl ParsePreprocessorArgs(class
clang::PreprocessorOptions &,class clang::driver::ArgList &,class
clang::Diagnostic &)" (?ParsePreprocessorArgs@@YAXAAVPreprocessorOptions@clang@@AAVArgList@driver@2@AAVDiagnostic@2@@Z)</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">85>clangFrontend.lib(ASTUnit.obj) : error LNK2019:
unresolved external symbol "public: void __thiscall
clang::ASTReader::InitializeContext(class clang::ASTContext &)"
(?InitializeContext@ASTReader@clang@@QAEXAAVASTContext@2@@Z) referenced in
function "public: static class clang::ASTUnit * __cdecl
clang::ASTUnit::LoadFromASTFile(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const
&,class llvm::IntrusiveRefCntPtr<class clang::Diagnostic>,bool,struct
std::pair<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,class
llvm::MemoryBuffer const *> *,unsigned int,bool)"
(?LoadFromASTFile@ASTUnit@clang@@SAPAV12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$IntrusiveRefCntPtr@VDiagnostic@clang@@@llvm@@_NPAU?$pair@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PBVMemoryBuffer@llvm@@@4@I2@Z)</span></p>


<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">85>clangFrontend.lib(ASTUnit.obj) : error LNK2019:
unresolved external symbol "public: void __thiscall
clang::ASTReader::setPreprocessor(class clang::Preprocessor &)"
(?setPreprocessor@ASTReader@clang@@QAEXAAVPreprocessor@2@@Z) referenced in
function "public: static class clang::ASTUnit * __cdecl clang::ASTUnit::LoadFromASTFile(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &,class
llvm::IntrusiveRefCntPtr<class clang::Diagnostic>,bool,struct
std::pair<class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >,class llvm::MemoryBuffer const *> *,unsigned
int,bool)"
(?LoadFromASTFile@ASTUnit@clang@@SAPAV12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$IntrusiveRefCntPtr@VDiagnostic@clang@@@llvm@@_NPAU?$pair@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PBVMemoryBuffer@llvm@@@4@I2@Z)</span></p>


<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">85>clangFrontend.lib(ASTUnit.obj) : error LNK2019:
unresolved external symbol "public: __thiscall
clang::ASTReader::ASTReader(class clang::SourceManager &,class
clang::FileManager &,class clang::Diagnostic &,char const *,bool)"
(??0ASTReader@clang@@QAE@AAVSourceManager@1@AAVFileManager@1@AAVDiagnostic@1@PBD_N@Z)
referenced in function "public: static class clang::ASTUnit * __cdecl
clang::ASTUnit::LoadFromASTFile(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const
&,class llvm::IntrusiveRefCntPtr<class clang::Diagnostic>,bool,struct
std::pair<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,class
llvm::MemoryBuffer const *> *,unsigned int,bool)"
(?LoadFromASTFile@ASTUnit@clang@@SAPAV12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$IntrusiveRefCntPtr@VDiagnostic@clang@@@llvm@@_NPAU?$pair@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PBVMemoryBuffer@llvm@@@4@I2@Z)</span></p>


<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">85>clangFrontend.lib(ASTUnit.obj) : error LNK2019:
unresolved external symbol "public: virtual __thiscall
clang::ASTReaderListener::~ASTReaderListener(void)"
(??1ASTReaderListener@clang@@UAE@XZ) referenced in function "public:
virtual void * __thiscall clang::ASTReaderListener::`scalar deleting
destructor'(unsigned int)" (??_GASTReaderListener@clang@@UAEPAXI@Z)</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">85>clangFrontend.lib(ASTUnit.obj) : error LNK2019:
unresolved external symbol "public: __thiscall clang::PCHGenerator::PCHGenerator(class
clang::Preprocessor const &,bool,char const *,class llvm::raw_ostream
*)"
(??0PCHGenerator@clang@@QAE@ABVPreprocessor@1@_NPBDPAVraw_ostream@llvm@@@Z)
referenced in function "public: __thiscall `anonymous namespace'::PrecompilePreambleConsumer::PrecompilePreambleConsumer(class
clang::ASTUnit &,class clang::Preprocessor const &,bool,char const
*,class llvm::raw_ostream *)"
(??0PrecompilePreambleConsumer@?A0x354744ea@@QAE@AAVASTUnit@clang@@ABVPreprocessor@3@_NPBDPAVraw_ostream@llvm@@@Z)</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">85>clangFrontend.lib(FrontendActions.obj) : error
LNK2001: unresolved external symbol "public: __thiscall
clang::PCHGenerator::PCHGenerator(class clang::Preprocessor const
&,bool,char const *,class llvm::raw_ostream *)" (??0PCHGenerator@clang@@QAE@ABVPreprocessor@1@_NPBDPAVraw_ostream@llvm@@@Z)</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">85>clangFrontend.lib(ASTUnit.obj) : error LNK2001:
unresolved external symbol "public: virtual class
clang::ASTDeserializationListener * __thiscall
clang::PCHGenerator::GetASTDeserializationListener(void)" (?GetASTDeserializationListener@PCHGenerator@clang@@UAEPAVASTDeserializationListener@2@XZ)</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">85>clangFrontend.lib(ASTUnit.obj) : error LNK2019:
unresolved external symbol "public: unsigned int __thiscall
clang::ASTWriter::getDeclID(class clang::Decl const *)" (?getDeclID@ASTWriter@clang@@QAEIPBVDecl@2@@Z)
referenced in function "public: virtual void __thiscall `anonymous
namespace'::PrecompilePreambleConsumer::HandleTranslationUnit(class
clang::ASTContext &)" (?HandleTranslationUnit@PrecompilePreambleConsumer@?A0x354744ea@@UAEXAAVASTContext@clang@@@Z)</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">85>clangFrontend.lib(ASTUnit.obj) : error LNK2019:
unresolved external symbol "public: virtual void __thiscall
clang::PCHGenerator::HandleTranslationUnit(class clang::ASTContext &)"
(?HandleTranslationUnit@PCHGenerator@clang@@UAEXAAVASTContext@2@@Z) referenced
in function "public: virtual void __thiscall `anonymous
namespace'::PrecompilePreambleConsumer::HandleTranslationUnit(class
clang::ASTContext&)"
(?HandleTranslationUnit@PrecompilePreambleConsumer@?A0x354744ea@@UAEXAAVASTContext@clang@@@Z)</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">85>clangFrontend.lib(ASTUnit.obj) : error LNK2019:
unresolved external symbol "public: void __thiscall
clang::ASTWriter::WriteAST(class clang::Sema &,class
clang::MemorizeStatCalls *,char const *)" (?WriteAST@ASTWriter@clang@@QAEXAAVSema@2@PAVMemorizeStatCalls@2@PBD@Z)
referenced in function "public: bool __thiscall clang::ASTUnit::Save(class
llvm::StringRef)" (?Save@ASTUnit@clang@@QAE_NVStringRef@llvm@@@Z)</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">85>clangFrontend.lib(ASTUnit.obj) : error LNK2019:
unresolved external symbol "public: __thiscall
clang::ASTWriter::ASTWriter(class llvm::BitstreamWriter &)"
(??0ASTWriter@clang@@QAE@AAVBitstreamWriter@llvm@@@Z) referenced in function
"public: bool __thiscall clang::ASTUnit::Save(class llvm::StringRef)"
(?Save@ASTUnit@clang@@QAE_NVStringRef@llvm@@@Z)</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;">85>C:\llvm\llvm-vs10\bin\Debug\clang-interpreter.exe :
fatal error LNK1120: 14 unresolved externals</span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;"> </span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;"> </span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;"> </span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;"> </span></p>

<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: Consolas;"> </span></p>

</div>

</div>


<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">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/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br>