<div>Hi!</div>
<div> </div>
<div>I'm a noob to llvm and I'm running through the tutorial for adding JIT. I"m using llvm 2.1 on FC8.</div>
<div> </div>
<div>I'm just trying to compile this very simple piece of code based upon the full code listing in the tutorial:</div>
<div>using namespace std;</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 all the headers mentioned in the full code listing of the 'adding JIT' tutorial.</div>
<div> </div>
<div>When I compile the above code, I get the following error:</div>
<div> </div>
<div>error: no matching function for call to 'llvm::ExecutionEngine::create(llvm::Module*&)</div>
<div> </div>
<div>Was the tutorial wrong? Was the tutorial not written for llvm 2.1? Or is it operator error on my part.</div>
<div> </div>
<div>thx in advance!</div>
<div>-Bernardo</div>