DMD-2.065.0-b3 and VisualD x64 select optlink as linker
Arjan
arjan at ask.me.to
Mon Feb 10 14:59:31 PST 2014
On Monday, 10 February 2014 at 19:01:49 UTC, Rainer Schuetze
wrote:
>
>
> On 10.02.2014 14:56, Arjan wrote:
>> I Installed the dmd-2.065.0-b3.exe on Window-7 (64bits) with
>> VS2008
>> (64bits) professional and VS2010Express(32bits) installed.
> Check the settings on the page given above. If everything seems
> ok, please post the buildlog or the *.build.cmd file in the
> output directory.
Checked the settings in "Projects and Solutions->Visual D
settings->DMD directories->x64":
checked "override linker settings from dmd configuration in
sc.ini"
linker: $(VCINSTALLDIR)\bin\link.exe
=> Failed to link:
*.build.cmd
------------------8<---------------------
set PATH=C:\usr\local\d\x64\bin;C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\bin;%PATH%
set DMD_LIB=c:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\\lib\amd64;C:\Program Files\Microsoft
SDKs\Windows\v6.0A\lib\x64
set WindowsSdkDir=C:\Program Files\Microsoft SDKs\Windows\v6.0A\
set VCINSTALLDIR=c:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\
dmd -m64 -g -debug -X -Xf"Debug DMD x64\TestX64.json"
-deps="Debug DMD x64\TestX64.dep" -c -of"Debug DMD
x64\TestX64.obj" main.d
if errorlevel 1 goto reportError
set LIB=
echo. >
C:\usr\local\src\play\TestX64\TestX64\DEBUGD~1\TESTX6~1.LNK
echo "Debug DMD x64\TestX64.obj" /OUT:"Debug DMD x64\TestX64.exe"
/MAP:"Debug DMD x64\TestX64.map" user32.lib kernel32.lib
/LIBPATH:"c:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\\lib\amd64\" /LIBPATH:C:\Program\
/LIBPATH:Files\Microsoft\ /LIBPATH:SDKs\Windows\v6.0A\lib\x64\
/DEBUG /INCREMENTAL:NO /NOLOGO >>
C:\usr\local\src\play\TestX64\TestX64\DEBUGD~1\TESTX6~1.LNK
"C:\Program Files (x86)\VisualD\pipedmd.exe" link.exe
@C:\usr\local\src\play\TestX64\TestX64\DEBUGD~1\TESTX6~1.LNK
if errorlevel 1 goto reportError
if not exist "Debug DMD x64\TestX64.exe" (echo "Debug DMD
x64\TestX64.exe" not created! && goto reportError)
goto noError
:reportError
echo Building Debug DMD x64\TestX64.exe failed!
:noError
--------------------->8--------------------------
remarks:
set PATH=C:\usr\local\d\x64\bin; <== wrong path!
echo "Debug DMD.... <== messes up the /LIBPATH: !
buildlog:
---------------------8<--------------------------
Build Log
Building Debug DMD x64\TestX64.exe
Command Line
set PATH=C:\usr\local\d\x64\bin;C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\bin;%PATH%
set DMD_LIB=c:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\\lib\amd64;C:\Program Files\Microsoft
SDKs\Windows\v6.0A\lib\x64
set WindowsSdkDir=C:\Program Files\Microsoft SDKs\Windows\v6.0A\
set VCINSTALLDIR=c:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\
dmd -m64 -g -debug -X -Xf"Debug DMD x64\TestX64.json"
-deps="Debug DMD x64\TestX64.dep" -c -of"Debug DMD
x64\TestX64.obj" main.d
if errorlevel 1 goto reportError
set LIB=
echo. >
C:\usr\local\src\play\TestX64\TestX64\DEBUGD~1\TESTX6~1.LNK
echo "Debug DMD x64\TestX64.obj" /OUT:"Debug DMD x64\TestX64.exe"
/MAP:"Debug DMD x64\TestX64.map" user32.lib kernel32.lib
/LIBPATH:"c:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\\lib\amd64\" /LIBPATH:C:\Program\
/LIBPATH:Files\Microsoft\ /LIBPATH:SDKs\Windows\v6.0A\lib\x64\
/DEBUG /INCREMENTAL:NO /NOLOGO >>
C:\usr\local\src\play\TestX64\TestX64\DEBUGD~1\TESTX6~1.LNK
"C:\Program Files (x86)\VisualD\pipedmd.exe" link.exe
@C:\usr\local\src\play\TestX64\TestX64\DEBUGD~1\TESTX6~1.LNK
if errorlevel 1 goto reportError
if not exist "Debug DMD x64\TestX64.exe" (echo "Debug DMD
x64\TestX64.exe" not created! && goto reportError)
goto noError
:reportError
echo Building Debug DMD x64\TestX64.exe failed!
:noError
Output
OPTLINK (R) for Win32 Release 8.00.15
Copyright (C) Digital Mars 1989-2013 All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
OPTLINK : Warning 9: Unknown Option : OUT
OPTLINK : Error 12: Number Overflow :
Building Debug DMD x64\TestX64.exe failed!
--------------------->8--------------------------
remarks:
The "pipedmd.exe" command uses the link.exe found first in the
search path.
When I disabled the "override linker ...." the build and link
succeeds!
More information about the Digitalmars-d-ide
mailing list