Hi, guys.Have a strange problem with LLVM in my project (https://github.com/ababo/AntOS). Cannot instantiate JIT execution engine (NULL returns; message: Interpreter has not been linked in.). As you can see from the code I call InitializeNativeTarget. Also I tried to directly include the "llvm/ExecutionEngine/JIT.h" header, but with no success. I link with `llvm-config --ldflags --libs core jit native`, so there's no problem here. Can you suggest me anything? Thanks.
_______________________________________________
LLVM Developers mailing list
LLV...@cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
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.
As I mentioned before I already tried to include this header with no success. I work in Linux, so it's really strange.
1) you need to #include "llvm/ExecutionEngine/JIT.h"
2) you must pass an empty string to EngineBuilder::setErrorStr. See
JIT::createJIT for the reason.
Jeff