Re: m32mscoff with lld-link causes SEH errors

2020-05-26 Thread Daniel C via Digitalmars-d-learn
On Tuesday, 26 May 2020 at 15:56:31 UTC, kinke wrote: Using `-L/safeseh:no` should work around this. It successfully made the executable, and it runs fine - until exit lol. Must be more tweaks needed. Edit source/app.d to start your project. object.Error@(0): Access Violation

Re: m32mscoff with lld-link causes SEH errors

2020-05-26 Thread Daniel C via Digitalmars-d-learn
On Tuesday, 26 May 2020 at 15:56:31 UTC, kinke wrote: On Monday, 25 May 2020 at 01:32:58 UTC, Daniel C wrote: Is lld-link only for 64-bit compiles (-m64 is the only one that gives no errors) Nope, but SafeSEH is a 32-bit-only feature. DMD doesn't emit SafeSEH compatible object files, and LLD

Re: m32mscoff with lld-link causes SEH errors

2020-05-26 Thread kinke via Digitalmars-d-learn
On Monday, 25 May 2020 at 01:32:58 UTC, Daniel C wrote: Is lld-link only for 64-bit compiles (-m64 is the only one that gives no errors) Nope, but SafeSEH is a 32-bit-only feature. DMD doesn't emit SafeSEH compatible object files, and LLD seems to have a different default setting in that

m32mscoff with lld-link causes SEH errors

2020-05-24 Thread Daniel C via Digitalmars-d-learn
Hi, I have a simple program with just one line (below). I've compiled on Windows using dmd -ms32coff app.d and have had LINKCMD set to lld-link, but get the following errors. Is lld-link only for 64-bit compiles (-m64 is the only one that gives no errors) lld-link: error: /safeseh: app.obj