(Initially, `cl.exe` isn't in my default path)

If I run `vccexe.exe` I get the following
    
    
    "C:\Windows\system32\cmd.exe" /C "C:\Program Files (x86)\Microsoft Visual 
Studio 14.0\VC\vcvarsall && SET"
    cl.exe
    Traceback (most recent call last)
    vccexe.nim(61)           vccexe
    osproc.nim(581)          startProcess
    oserr.nim(113)           raiseOSError
    Error: unhandled exception: The system cannot find the file specified.
    
    Additional info: Requested command not found: 'cl.exe'. OS error: [OSError]
    

However, if I then run the vcvarsall manually from the command prompt, it will 
set the various environment variables

and `cl.exe` can now run from the command line, and NOW `vccexe.exe` works

and `nim c --cc:vcc -r ...` works

Note: the `C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall` 
needs to be quoted to allow for the spaces in the command (yeah, the joys of 
windows)

Reply via email to