crosire / blink

A tool which allows you to edit source code of any MSVC C++ project live at runtime
BSD 2-Clause "Simplified" License
1.09k stars 81 forks source link

'cl.exe' is not recognized as an internal or external command #33

Closed kochol closed 4 years ago

kochol commented 4 years ago

Hi I'm sure I set /ZI (not /Zi) compile flag but I get cl.exe error with vs 2019.

crosire commented 4 years ago

You need to run blink from the VS command-line or have cl.exe (the C++ compiler) in your PATH.

kochol commented 4 years ago

image Same error and the cl is in path.

crosire commented 4 years ago

Right, sorry, that should have been: You need to run the target application from the VS command-line (or use VC++ 2017, which does not suffer from this problem, or hardcode the path as per https://github.com/crosire/blink/issues/31#issuecomment-629704515). It's the same problem as noted in multiple issues: the original compile command-line is no longer written by VC++ 2019, so blink has to fall back to a custom one.