<div>Hello!</div>
<div> </div>
<div>I'm using llvm v2.1 on FC8. I'm having some trouble with the tutorial on adding JIT.</div>
<div> </div>
<div>I'm just trying to compile the following code:</div>
<div> </div>
<div>using namespace llvm;</div>
<div>static ExecutionEngine *TheExecutionEngine;</div>
<div>static Module *TheModule;</div>
<div>int main(){</div>
<div>TheModule = new Module("my cool jit");</div>
<div>TheExecutionEngine = ExecutionEngine::create(TheModule);</div>
<div>}</div>
<div> </div>
<div>I'm using the following command-line for compiling:</div>
<div>--</div>
<div>g++ -g test.cpp `llvm-config --cppflags --ldflags --libs core jit native</div>
<div> </div>
<div>I get an error that says:</div>
<div> </div>
<div> </div>
<div>The headers I'm using are the ones listed in the full code listing of the LLVM Kaleidoscope adding JIT tutorial.</div>
<div>Is the tutorial wrong and the header correct or vice-versa? Was the tutorial not written for llvm 2.1 and above?</div>
<div> </div>
<div>thx in advance!</div>
<div>-Bernardo</div>