On Fri, Sep 2, 2011 at 6:15 PM, Semion Prihodko <span dir="ltr"><<a href="mailto:semion.ababo@gmail.com">semion.ababo@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi, guys.<div><br></div><div>Have a strange problem with LLVM in my project (<a href="https://github.com/ababo/AntOS" target="_blank">https://github.com/ababo/AntOS</a>). Cannot instantiate JIT execution engine (NULL returns; message: Interpreter has not been linked in.). As you can see from the code I call <span style="font-family:monospace;white-space:pre-wrap;background-color:rgb(255, 255, 255);font-size:medium">InitializeNativeTarget. Also I tried to directly include the "</span><span style="font-family:monospace;white-space:pre-wrap;background-color:rgb(255, 255, 255);font-size:medium">llvm/ExecutionEngine/JIT.h" header, but with no success. I link with </span><span style="font-family:'Bitstream Vera Sans Mono', 'Courier New', monospace;font-size:12px;line-height:16px;white-space:pre-wrap;background-color:rgb(255, 255, 255)">`llvm-config --ldflags --libs core jit native`, so there's no problem here. Can you suggest me anything? Thanks.</span></div>


<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br>Try to call ForceJITLinking::ForceJITLinking(); in your application.<br>