[LLVMdev] Problem initializing a JIT via C bindings

Keppler, Dave dkeppler at mitre.org
Thu Oct 22 07:10:48 PDT 2009


>> I'm compiling it as follows, which completes with no errors on either
>LLVM version.
>>
>> LLVM_CONFIG=<the llvm-config from the version I want to use>
>> gcc `$LLVM_CONFIG --cflags` -o main.o -c main.c
>> g++ `$LLVM_CONFIG --cflags` \
>>     `$LLVM_CONFIG --ldflags` \
>>     main.o `$(LLVM_CONFIG) --libfiles engine BitReader`
>>
>> Am I missing some other post 2.5 API change or am I building things
>wrong?
>
>Add "jit native" to the list of components you're passing to llvm-config.
>
>Nick

For me 'jit native' and 'engine' produce equivalent lists of libraries.  

Did my code look correct otherwise?  There must be something broken on my system if that's the case.

- Dave




More information about the llvm-dev mailing list