<div dir="ltr"><p>Hi Waxiado, Chris and Tim,</p><p><br></p><p>when i compiled with :</p><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
$ clang++ -g try.cpp `llvm-config --cppflags --ldflags --libs core jit native`-o3 -S -emit-llvm</blockquote>
<p>I get the following warnings </p><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">clang: warning: -lz: 'linker' input unused<br>
clang: warning: -lpthread: 'linker' input unused<br>clang: warning: -lcurses: 'linker' input unused<br>clang: warning: -lm: 'linker' input unused<br>clang: warning: -lLLVMX86Disassembler: 'linker' input unused<br>
clang: warning: -lLLVMX86AsmParser: 'linker' input unused<br>clang: warning: -lLLVMX86CodeGen: 'linker' input unused<br>clang: warning: -lLLVMSelectionDAG: 'linker' input unused<br>clang: warning: -lLLVMAsmPrinter: 'linker' input unused<br>
clang: warning: -lLLVMMCParser: 'linker' input unused<br>clang: warning: -lLLVMX86Desc: 'linker' input unused<br>clang: warning: -lLLVMX86Info: 'linker' input unused<br>clang: warning: -lLLVMX86AsmPrinter: 'linker' input unused<br>
clang: warning: -lLLVMX86Utils: 'linker' input unused<br>clang: warning: -lLLVMJIT: 'linker' input unused<br>clang: warning: -lLLVMRuntimeDyld: 'linker' input unused<br>clang: warning: -lLLVMExecutionEngine: 'linker' input unused<br>
clang: warning: -lLLVMCodeGen: 'linker' input unused<br>clang: warning: -lLLVMObjCARCOpts: 'linker' input unused<br>clang: warning: -lLLVMScalarOpts: 'linker' input unused<br>clang: warning: -lLLVMInstCombine: 'linker' input unused<br>
clang: warning: -lLLVMTransformUtils: 'linker' input unused<br>clang: warning: -lLLVMipa: 'linker' input unused<br>clang: warning: -lLLVMAnalysis: 'linker' input unused<br>clang: warning: -lLLVMTarget: 'linker' input unused<br>
clang: warning: -lLLVMMC: 'linker' input unused<br>clang: warning: -lLLVMObject: 'linker' input unused<br>clang: warning: -lLLVMCore: 'linker' input unused<br>clang: warning: -lLLVMSupport-o3: 'linker' input unused<br>
clang: warning: argument unused during compilation: '-L/usr/local/lib'</blockquote><div><br></div><div>and when i compile the .s file with lli</div><div><br></div><div>i get</div><div><br></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">LLVM ERROR: Program used external function '_ZN4llvm16getGlobalContextEv' which could not be resolved! </blockquote>
<div><br></div><div>Can you kindly help me resolve it? </div><p>
</p>
</div>