can't compile in debug mode (dmd, win32)

Carlos Santander csantander619 at gmail.com
Sun Aug 19 17:09:05 PDT 2007


Leonid Krashenko escribió:
> I type in cmd (windows xp): 
> 
> E:\projects\d\HelloWorld>dmd -g HelloWorld.d 
> 
> it gives an error 
> 
> E:\sdk\d\dmd\bin\..\..\dm\bin\link.exe HelloWorld,,,user32+kernel32/co/noi; 
> OPTLINK (R) for Win32 Release 7.50B1 
> Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved 
> 
> OPTLINK : Error 118: Filename Expected 
> Path=e:\Program Files\Far;e:\Program Files\CMake 2.4\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;E:\Program File 
> s\MySQL\MySQL Server 5.0\bin;e:\maven-2.0.6\bin;e:\Program Files\IDM Computer Solutions\UltraEdit-32;e:\Program Files\Common Fil 
> es\GTK\2.0\bin;C:\Program Files\Common Files\Autodesk Shared\;E:\Program Files\Autodesk\backburner\;e:\Program Files\doxygen\bin 
> ;E:\PROGRA~1\ATT\Graphviz\bin;e:\mingw\bin;E:\sdk\d\dmd\bin;E:\sdk\d\dsss-0.70-dmd-win\bin;E:\sdk\d\dm\bin;E:\sdk\d\dgdb;c:\dm\b 
> in;c:\dmd\bin;E:\sdk\c++\boost_1_34\lib 
> ^ 
> --- errorlevel 1 
> 
> I can compile it without '-g' switch 
> 
> p.s. 
> I have VS2005 installed, but it seems that it's link.exe is not located in PATH.

OptLink is complaining about your PATH, apparently. Have you tried setting to 
something shorter?

-- 
Carlos Santander Bernal


More information about the Digitalmars-d-learn mailing list