Problems with x64 build with VC2012

Rainer Schuetze via Digitalmars-d-ide digitalmars-d-ide at puremagic.com
Sun Mar 12 00:29:02 PST 2017



On 11.03.2017 14:12, ixid wrote:
> On Monday, 10 February 2014 at 19:05:05 UTC, Rainer Schuetze wrote:
>> This sounds similar to what Arjan reported just today: somehow optlink
>> is preferred over the MS linker (unfortunately they are both called
>> link.exe). Please check linker path on the "Projects and
>> Solutions->Visual D settings->DMD directories->x64" options page. It
>> should have an absolute path to avoid optlink being found first via
>> the PATH environment variable.
>>
>> If this doesn't reveal anything, please post the buildlog or the
>> *.build.cmd file in the output directory.
>
> I'm having this problem as well, I've set "Projects and
> Solutions->Visual D settings->DMD
>> directories->x64" to the explicit path of the link.exe
>> ("C:\D\dmd2\windows\bin\link.exe") with override sc.ini ticked. I'm
>> still getting the error listed. Is there a solution or fix?

If you want to build for x64, you must use the MS linker. A usual 
override for VS2012 would be

c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\link.exe


More information about the Digitalmars-d-ide mailing list