具体配置过程如下链接:
https://zhuanlan.zhihu.com/p/35178331
但中间出了点问题:CTRL+ALT+n 运行后:
PS D:\C++> cd "d:\C++" ; if ($?) { gcc test.c -o test -std=c11 -lm } ; if ($?) { echo '[Running]' } ; if ($?) { ./test }
gcc : 无法将“gcc”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然
后再试一次。
所在位置 行:1 字符: 25
+ cd "d:\C++" ; if ($?) { gcc test.c -o test -std=c11 -lm } ; if ($?) { ...
+ ~~~
+ CategoryInfo : ObjectNotFound: (gcc:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
在Windows PowerShell等中执行 g++ / gcc 都没有问题。
但在VS code中就无法事变,是环境变量添加的问题吗? 还没有解决。