unresolved external symbol in BetterC
Mike Parker
aldacron at gmail.com
Sun Dec 8 19:36:40 UTC 2019
On Sunday, 8 December 2019 at 19:29:23 UTC, Marcel wrote:
> I've been getting some weird linker errors around main() when I
> declare a struct with a destructor. Is it possible that
> exception code is being generated even though I have the
> -betterC flag enabled?
>
> //Example code:
> extern(C) void main()
> {
> auto window = Window("Hello", 0, 0, 800, 600);
> while(window.IsLive)
> window.Update;
> }
Struct destructors should work in betterC. It would be helpful if
you can paste the errors.
More information about the digitalmars-d-ldc
mailing list