m32mscoff with lld-link causes SEH errors

Daniel C dcrep at rep.com
Mon May 25 01:32:58 UTC 2020


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 is not compatible with SEH
lld-link: error: /safeseh: ti_Ag_2714_4a7.obj is not compatible 
with SEH
lld-link: error: /safeseh: stdio_4_58e.obj is not compatible with 
SEH
lld-link: error: /safeseh: stdio_1_180.obj is not compatible with 
SEH
lld-link: error: /safeseh: exception_2baa_5b5.obj is not 
compatible with SEH
lld-link: error: /safeseh: deh_win32_256e_60b.obj is not 
compatible with SEH
lld-link: error: /safeseh: deh_win32_2577_653.obj is not 
compatible with SEH
lld-link: error: /safeseh: lifetime_25bb_4e0.obj is not 
compatible with SEH
lld-link: error: /safeseh: lifetime_25a5_482.obj is not 
compatible with SEH
lld-link: error: /safeseh: dmain2_2597_47b.obj is not compatible 
with SEH
lld-link: error: /safeseh: deh_win32_2571_3b9.obj is not 
compatible with SEH
lld-link: error: /safeseh: object_cf_6f6.obj is not compatible 
with SEH
lld-link: error: /safeseh: object_10_583.obj is not compatible 
with SEH
lld-link: error: /safeseh: ti_Ag_2712_42f.obj is not compatible 
with SEH
lld-link: error: /safeseh: object_266_6bb.obj is not compatible 
with SEH
lld-link: error: /safeseh: object_7_32e.obj is not compatible 
with SEH
lld-link: error: /safeseh: ti_Ag_270e_435.obj is not compatible 
with SEH
lld-link: error: /safeseh: ti_Ag_270f_436.obj is not compatible 
with SEH
lld-link: error: /safeseh: object_a_58c.obj is not compatible 
with SEH
lld-link: error: /safeseh: stdio_10_cfb.obj is not compatible 
with SEH

app.d:
import std.stdio;

void main()
{
	writeln("Edit source/app.d to start your project.");
}


More information about the Digitalmars-d-learn mailing list