llvm::ExecutionEngine::createJIT

Hi all,

Is the static method llvm::ExecutionEngine::createJIT() still supported on 3.4.2? Compile went ok, linking failed. Any idea?

Thanks,
-cktan

clang++ -g -O0 llvm-config --cxxflags hello.cpp jit.o llvm-config --libs core jit native llvm-config --ldflags -o hello
Undefined symbols for architecture x86_64:
“llvm::ExecutionEngine::createJIT(llvm::Module*, std::string*, llvm::JITMemoryManager*, llvm::CodeGenOpt::Level, bool, llvm::Reloc::Model, llvm::CodeModel::Model)”, referenced from:
jit_init(bool) in jit.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [hello] Error 1

Hi,
As far as i can see I recommend EngineBuilder. :slight_smile: