Hello!
I'm using llvm v2.1 on FC8. I'm having some trouble with the tutorial
on
adding JIT.
I'm just trying to compile the following code:
using namespace llvm;
static ExecutionEngine *TheExecutionEngine;
static Module *TheModule;
int main(){
TheModule = new Module("my cool jit");
TheExecutionEngine = ExecutionEngine::create(TheModule);
}
I'm using the following command-line for compiling:
--
g++ -g test.cpp `llvm-config --cppflags --ldflags --libs core jit native
I get an error that says:
The headers I'm using are the ones listed in the full code listing of the
LLVM Kaleidoscope adding JIT tutorial.
Is the tutorial wrong and the header correct or vice-versa? Was the
tutorial not written for llvm 2.1 and above?
thx in advance!
-Bernardo
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20080329/d45adc38/attachment.html>
On Mar 29, 2008, at 4:46 PM, Bernardo Elayda wrote:> The headers I'm using are the ones listed in the full code listing > of the LLVM Kaleidoscope adding JIT tutorial. > Is the tutorial wrong and the header correct or vice-versa? Was the > tutorial not written for llvm 2.1 and above? >The tutorial was designed for llvm 2.2+. -Chris
Seemingly Similar Threads
- [LLVMdev] no matching function call to llvm::ExecutionEngine::create(llvm::Module*&)
- [LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
- [LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
- [LLVMdev] Kaleidoscope-tutorial: Fails to create the JIT
- [LLVMdev] Kaleidoscope-tutorial: Fails to create the JIT