Noob questoin on ExecutionEngine::create


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:

The tutorial was designed for llvm 2.2+.