[LLVMdev] Ответ: using dynamic libraries from bytecode?

Yaroslav Kavenchuk kavenchuk at gmail.com
Thu Jun 19 00:33:47 PDT 2008


Chris Lattner wrote:
>> $ lli gcd_ui.bc
>> ERROR: Program used external function '__gmpz_init_set_ui' which could
>> not be resolved!
>>
>> This application has requested the Runtime to terminate it in an  
>> unusual way.
>> Please contact the application's support team for more information.
> 
> Try: lli -load /path/to/foo.so gcd_ui.bc
> 
> Replace ".so" with ".dylib" or ".dll" as appropriate.
> 

Many thanks! This is works. Nice!

Next question: there is a standard portable way to do so (load dynamic 
library) from the body of the program (from bytecode)?


-- 
WBR, Yaroslav Kavenchuk.



More information about the llvm-dev mailing list