On Wednesday, November 06, 2013 00:22:13 Namespace wrote: > OPTLINK (R) for Win32 Release 8.00.13 > Copyright (C) Digital Mars 1989-2010 All rights reserved. > http://www.digitalmars.com/ctg/optlink.html > Debug\Foo.obj Offset 00000H Record Type 0064 > Error 138: Module or Dictionary corrupt > Building Debug\Foo.exe failed! > > That's what I get when I compile with-m64. What is wrong?
-m64 shouldn't even be using optlink. On Windows, 64-bit links with the Visual Studio linker, not optlink. I think that you may have to set up your sc.ini differently for that though, which would mean that you couldn't simply switch between -m32 and -m64 on Windows. But I don't know for sure, because I almost never build in Windows, and I have yet to mess around with 64-bit D on Windows. - Jonathan m Davis
