LLVM Interpreter external library

Hello everyone,

I’ve got some bytecode (compiled from a c source file) that I’m trying to interpret, but I have an issue with an external library.

command: lli.exe file.bc
error: LLVM ERROR: Program used external function ‘:relaxed:_WSAStartup@8’ which could not be resolved!

Somehow I should link ws2_32.lib or ws2_32.dll to the interpreter. I have tried a dll injector (https://code.google.com/p/injector/), but that didn’t work. Any other ideas?

I’ve compiled LLVM on a windows in visual studio.

Thank you in advance,