vscode cout 出现 Segmentation fault 的错误的解决方法

原因是环境变量的 Path 变量中,包含的路径中,有多个路径底下都包含 libstdc+±6.dll,应该确保 C:\msys64\mingw64\bin 是系统范围 PATH 和用户 PATH 中的第一位,或者是干脆删掉那些多余的路径

参考:

https://stackoverflow.com/questions/76495365/simple-hello-world-program-giving-segmentation-fault-in-vs-code

https://stackoverflow.com/questions/76631846/c-segmentation-fault-on-hello-world-cin-and-cout

你可能感兴趣的:(vscode,ide,编辑器)