Isn't there someone to help me with this issue? I'm very upset about this stupid problem which wasted the whole day. BTW, I can create JIT from main.cpp, but not in the <span class="Apple-style-span" style="font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 14px; background-color: rgb(255, 255, 255); ">required</span> source file (runtime.cpp), so this is not about linking. Very weird.<br>
<br><div class="gmail_quote">2011/9/2 Semion Prihodko <span dir="ltr"><<a href="mailto:semion.ababo@gmail.com">semion.ababo@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I cannot call the constructor explicitly, because ForceJITLinking is a name of structure and of it's instance at the same time. But it called implicitly when the instance above is being instantiated. <br>As I mentioned before I already tried to include this header with no success. I work in Linux, so it's really strange.<div>
<div></div><div class="h5"><br>
<br><div class="gmail_quote">2011/9/2 arrowdodger <span dir="ltr"><<a href="mailto:6yearold@gmail.com" target="_blank">6yearold@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On Fri, Sep 2, 2011 at 6:15 PM, Semion Prihodko <span dir="ltr"><<a href="mailto:semion.ababo@gmail.com" target="_blank">semion.ababo@gmail.com</a>></span> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
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></div>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">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>
</blockquote></div><br>
</div></div></blockquote></div><br>