Invoking cl.exe (MSVC compiler) in Cygwin shell

前端 未结 12 2236
执念已碎
执念已碎 2020-12-04 16:50

I\'m heavily using Cygwin (with PuTTY shell). But, it\'s quite tricky to invoke cl.exe (that is, the Visual C++ compiler toolchain) in the Cygwin Bash shell. R

12条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-04 17:25

    Another alternative is to open up vcvars32.bat (or vsvars32.bat, which does the real work in recent version of Visual Studio), look at what it does, and replicate that in the appropriate shell script.

    It's not particularly complex - all it does is set a bunch of environment variables.

提交回复
热议问题