I am new to LLVm and I have recently installed LLVM and clang by following all the steps mentioned on http://llvm.org/docs/GettingStarted.html#getting-started-quickly-a-summary. For building the project I created a folder build parallel to LLVM and then triggered following three commands cd build cmake ../llvm make All the commands like clang++ lli, llc, llvm-config are working fine but when I try to compile any of the examples provided in llvm/examples folder, I received alot of compilation errorsl Errors are like verifier.h file not found nullptr is undefined Can you please help me in this regards Thanks and Regards Nitin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140921/c8796e18/attachment.html>
> All the commands like clang++ lli, llc, llvm-config are working fine but > when I try to compile any of the examples provided in llvm/examples folder, > I received alot of compilation errorsl > Errors are like > verifier.h file not found > nullptr is undefinedI presume you're talking about these examples [1]? These are meant to be built by LLVM's build system. The errors you are seeing as due to include paths not being set and not requesting C++11 support which will happen if you try to build these by hand and don't know how the build system normally builds the programs For CMake there is a cmake cache variable you can set to get the examples built $ cmake -DLLVM_BUILD_EXAMPLES:BOOL=ON ../llvm $ make -j<N> [1] https://github.com/llvm-mirror/llvm/tree/master/examples -- Dan Liew PhD Student - Imperial College London