unresolved external symbol in BetterC

Marcel marcelpi97 at gmail.com
Sun Dec 8 19:29:23 UTC 2019


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;
}


More information about the digitalmars-d-ldc mailing list