Dlang LLVM ERROR: Program used external function which could not be resolved

BARRE KEVIN via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Thu Jun 15 07:49:03 PDT 2017


On Thursday, 15 June 2017 at 13:30:21 UTC, BARRE KEVIN wrote:
> On Wednesday, 14 June 2017 at 16:48:31 UTC, BARRE KEVIN wrote:
>> https://stackoverflow.com/questions/44550353/dlang-llvm-error-program-used-external-function-which-could-not-be-resolved
>>
>> I try to compile d code to llvm IR but when i compile or 
>> execute .ll i have error
>>
>> LLVM ERROR: Program used external function 
>> '_d_throw_exception' which could not be resolved!
>>
>> Why in c or c++ with
>>
>> clang -S -emit-llvm foo.c
>> lli foo.ll
>>
>> It is work normaly.
>
> lli -load /usr/lib/libphobos2.so foo.ll
>
> I forgot link the library

lli -load /usr/lib/libdruntime-ldc-debug.so.72 -load 
/usr/lib/libphobos2-ldc-debug.so.72 main.ll

no work :(

i forgot something ?


More information about the digitalmars-d-ldc mailing list