Nothing at all compiles with -m64 on Windows
Anonymouse
asdf at asdf.net
Tue May 7 14:50:17 UTC 2019
Everything, even an empty void main, fails to compile in -m64 on
this machine running Windows. -m32 works. dmd was installed with
the .exe installer. It used to work and I forget what version of
dmd I had, but then I upgraded to 2.086 and now it doesn't. I've
tried reverting as far back as 2.079 but the behaviour persists.
void main() {}
> dmd -m64 main.d
libcmt.lib(utility_desktop.obj) : error LNK2019: unresolved
external symbol __imp_RtlLookupFunctionEntry referenced in
function __scrt_fastfail
libvcruntime.lib(risctrnsctrl.obj) : error LNK2001: unresolved
external symbol __imp_RtlLookupFunctionEntry
libucrt.lib(invalid_parameter.obj) : error LNK2001: unresolved
external symbol __imp_RtlLookupFunctionEntry
libcmt.lib(gs_report.obj) : error LNK2001: unresolved external
symbol __imp_RtlLookupFunctionEntry
libcmt.lib(utility_desktop.obj) : error LNK2019: unresolved
external symbol __imp_RtlVirtualUnwind referenced in function
__scrt_fastfail
libucrt.lib(invalid_parameter.obj) : error LNK2001: unresolved
external symbol __imp_RtlVirtualUnwind
libcmt.lib(gs_report.obj) : error LNK2001: unresolved external
symbol __imp_RtlVirtualUnwind
libvcruntime.lib(_riscchandler_.obj) : error LNK2019: unresolved
external symbol __imp_RtlUnwindEx referenced in function
__C_specific_handler
libvcruntime.lib(risctrnsctrl.obj) : error LNK2001: unresolved
external symbol __imp_RtlUnwindEx
libvcruntime.lib(throw.obj) : error LNK2019: unresolved external
symbol __imp_RtlPcToFileHeader referenced in function
_CxxThrowException
main.exe : fatal error LNK1120: 4 unresolved externals
Error: linker exited with status 1120
> adam_d_ruppe | looks like it didnt include the normal crt
> alphaglosined | think so?
> adam_d_ruppe | well wait that IS the normal crt referencing
> something else
> adam_d_ruppe | weird
> alphaglosined | yeah
Obviously something is wrong with the environment/setup. What can
I do?
More information about the Digitalmars-d-learn
mailing list