www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15106] New: Optlink executed with LDC as compiler?


          Issue ID: 15106
           Summary: Optlink executed with LDC as compiler?
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: visuald
          Assignee: nobody puremagic.com
          Reporter: turkeyman gmail.com

I select LDC as compiler, it builds and then invokes OPTLINK to link. It's even
a 64bit project...

I'm using the MSVC LDC build, it should use Microsoft's linker like DMD no?

Building .\dsignal.exe...
OPTLINK (R) for Win32  Release 8.00.17
Copyright (C) Digital Mars 1989-2013  All rights reserved.
OPTLINK : Warning 9: Unknown Option : NXCOMPAT
OPTLINK : Warning 9: Unknown Option : DYNAMICBASE
OPTLINK : Error 8: Illegal Filename 
"/OUT:.\dsignal.exe" analyse.obj fft.obj stft.obj util.obj wave.obj window.obj
plot.obj image.obj sound.obj normint.obj conv.obj hsx.obj package.obj rgb.obj
xyz.obj test.obj "/LIBPATH:C:\dev\ldc2-0.16.0-alpha4-win64-msvc\bin/../lib"
legacy_stdio_definitions.lib /LARGEADDRESSAWARE:NO
"/MAP:obj\x64\Release\dsignal.map" /SUBSYSTEM:CONSOLE phobos2-ldc.lib
druntime-ldc.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib
ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib 

Error: C:\dev\D\dmd2\windows\bin\link.exe failed with status: 1
Building .\dsignal.exe failed!

You can see from the lib path that it's definitely invoking LDC to build.

Sep 24 2015