digitalmars.D.learn - can't compile in debug mode (dmd, win32)
- Leonid Krashenko (17/17) Aug 19 2007 I type in cmd (windows xp):
- Carlos Santander (5/28) Aug 19 2007 OptLink is complaining about your PATH, apparently. Have you tried setti...
- Leonid Krashenko (4/34) Aug 19 2007 Thank you very much!
- Daniel Keep (14/50) Aug 22 2007 OPTLINK was written in assembler, back in the days when dinosaurs roamed
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.
Aug 19 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
Aug 19 2007
Carlos Santander Wrote:Leonid Krashenko escribió:Thank you very much! It works now. Looks like OptLink can't understand the path if there are spaces in it...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
Aug 19 2007
Leonid Krashenko wrote:Carlos Santander Wrote:OPTLINK was written in assembler, back in the days when dinosaurs roamed the Earth, and people still thought DOS was a pretty neat idea. You could use a copy of the OPTLINK source code to calibrate a carbon dating machine. The first ever recorded version of OPTLINK was programmed on a rock by something with prehensile feet. :P All joking aside, OPTLINK, as you noted, is not terribly fond of spaces. Also, if you have a multicore machine and your compile seems to be taking rather longer than normal, odds are OPTLINK is spinning and you'll have to kill it. That said, it *is* fast. :) -- DanielLeonid Krashenko escribi�:Thank you very much! It works now. Looks like OptLink can't understand the path if there are spaces in it...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
Aug 22 2007