<div dir="ltr">Hello all,<div><br></div><div style>I have configured the llvm source code on my machine through following the steps for Unix-like systems (<a href="http://clang.llvm.org/get_started.html">http://clang.llvm.org/get_started.html</a>) and am currently trying to run the sample plugin print-fns located in llvm/tools/clang/examples. </div>
<div style><br></div><div style>According to this discussion (<a href="http://comments.gmane.org/gmane.comp.compilers.clang.user/58">http://comments.gmane.org/gmane.comp.compilers.clang.user/58</a>) I should run "make BUILD_EXAMPLES=1 -C tools/clang" in the build directory. When I do that, I get the following error:</div>
<div style><br></div><div style><div>llvm[2]: Linking Debug+Asserts executable clang-interpreter</div><div>Undefined symbols:</div><div>  "llvm::ParseIR(llvm::MemoryBuffer*, llvm::SMDiagnostic&, llvm::LLVMContext&)", referenced from:</div>
<div>      clang::CodeGenAction::ExecuteAction()      in libclangCodeGen.a(CodeGenAction.o)</div><div>ld: symbol(s) not found</div><div>collect2: ld returned 1 exit status</div><div>make[2]: *** [/Users/V/build/Debug+Asserts/bin/clang-interpreter] Error 1</div>
<div>make[1]: *** [clang-interpreter/.makeall] Error 2</div><div>make: *** [examples/.makeall] Error 2</div><div><br></div><div style>The same happens when I run "make" in the clang/examples/PrintFunctionNames directory in effort to compile the plugin.</div>
<div style><br></div><div style>Any ideas as to why this occurs?</div><div style><br></div><div style>Thanks,</div><div style>Violeta</div></div></div>