[LLVMdev] Strange error for libLLVMCore.a
Yaroslav Kavenchuk
kavenchuk at gmail.com
Thu Nov 5 22:35:11 PST 2009
Paul Davey wrote:
> you want to use the execution engine and JIT but do not put them in the
> llvm-config line??
It's present:
$ g++ `llvm-config --libs --cflags --ldflags core analysis
executionengine jit interpreter native backend engine` fac.o -o fac
Ok, I add `all` to llvm-config:
$ llvm-gcc `llvm-config --cflags all` -c fac.c
$ g++ `llvm-config --libs --cflags --ldflags all` fac.o -o fac
fac.o:fake:(.text+0x1d): undefined reference to `LLVMModuleCreateWithName'
fac.o:fake:(.text+0x25): undefined reference to `LLVMInt32Type'
fac.o:fake:(.text+0x2d): undefined reference to `LLVMInt32Type'
fac.o:fake:(.text+0x4c): undefined reference to `LLVMFunctionType'
fac.o:fake:(.text+0x63): undefined reference to `LLVMAddFunction'
...
--
WBR, Yaroslav Kavenchuk
More information about the llvm-dev
mailing list