[LLVMdev] LLVM Win32 Issue

Óscar Fuentes ofv at wanadoo.es
Wed Feb 20 18:14:44 PST 2008


"Aaron Dwyer" <llvmification at gmail.com> writes:

[snip]

> JITCtor and InterpCtor are both NULL, so it's obvious why I'm getting
> back a NULL execution engine.  I am pretty sure it's because I'm
> missing a few llvm .lib or .obj files.  What is the set of llvm object
> files needed at link time for Win32 on X86 JIT?

This is what I use on MinGW. It is for 2.1. I hope 2.2 is similar:


LIBFILES = $(LLVM_LIB_PATH)LLVMX86.o \
	$(LLVM_LIB_PATH)LLVMExecutionEngine.o \
	$(LLVM_LIB_PATH)LLVMJIT.o \
	-lLLVMAsmParser \
	-lLLVMSelectionDAG \
	-lLLVMCodeGen \
	-lLLVMScalarOpts \
	-lLLVMTransformUtils \
	-lLLVMAnalysis  \
	-lLLVMTarget \
	-lLLVMCore \
	-lLLVMSupport \
	-lLLVMSystem \
	-lpsapi \
	-ldbghelp

If you are on VS, .o is .obj and -lLLVMWhatever is Whatever.lib.

If you still have problems, examine the commands that are executed for
building some example (examples/Fibonacci/fibonacci.cpp for instance).

HTH

-- 
Oscar




More information about the llvm-dev mailing list