[LLVMdev] llvm::ExecutionEngine::createJIT

C K Tan cktanx at gmail.com
Fri Aug 15 16:47:06 PDT 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140815/69fb6104/attachment.html>


More information about the llvm-dev mailing list