[LLVMdev] Win32 JIT issue + bug in ScheduleDAGSNodes.h?

srs
2008-12-31T01:31:52Z

>> While testing my compiler on win32 in JIT mode, I ran into a couple of
>> issues:
>>
>> 1. I linked the compiler with the lib files resulting from the cmake
>> created VS.NET build. While everything built just fine, the
>> ExecutionEngine::create call always returned NULL. The fix was to also
>> link with JIT.obj (thanks aKor for pointing me in the right direction).
>> I would have thought that linking with LLVMJIT.lib should suffice... a
>> VC++ linker issue?
>>
>
> Try adding this to the link command of your executable:
>
> /INCLUDE:_X86TargetMachineModule
>
> I should document this somehow.
>


Yeah, this is necessary, but not sufficient. I also had to link with
ExecutionEngineBindings.obj (not JIT.obj as first stated)

/Stein Roger