unresolved external symbol in BetterC

Marcel marcelpi97 at gmail.com
Sun Dec 8 21:13:40 UTC 2019


On Sunday, 8 December 2019 at 20:58:44 UTC, kinke wrote:
> On Sunday, 8 December 2019 at 19:29:23 UTC, Marcel wrote:
>> Is it possible that exception code is being generated even 
>> though I have the -betterC flag enabled?
>
> Yes, a cleanup/finally is used, apparently in an opAssign. - 
> These 2 symbols are apparently used to prevent too aggressive 
> LLVM optimizations and are normally provided in druntime here 
> [1]; you can add the 2 one-liners manually in a betterC project.
>
> [1] 
> https://github.com/ldc-developers/druntime/blob/d363d27e119e7cc41b8fd5ef2145d8a7ad140080/src/ldc/eh_msvc.d#L593-L606

Perfect! Thank you very much!


More information about the digitalmars-d-ldc mailing list