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

相关推荐
或许,这就是梦想吧!41 分钟前
## jupyter_server
ide·python·jupyter
SCBAiotAigc2 小时前
VSCode debug模式无法跳转进入内置模块
人工智能·vscode·python
巽星石2 小时前
在VSCode中使用Excalidraw
vscode·svg·excalidraw
kissSimple6 小时前
UE行为树编辑器图文笔记
笔记·ue5·编辑器·unreal engine·unreal engine 5
Spider Cat 蜘蛛猫7 小时前
关于vscode中settings.json中的设置
vscode·json·eslint
莫负初8 小时前
Pytest 使用Pycharm右键直接运行测试脚本正常,控制台命令pytest运行收集不到用例无法正常测试 no tests ran in 0.01s
ide·pycharm·pytest
Zww08919 小时前
idea插件市场安装没反应
java·ide·intellij-idea
hallo12814 小时前
vscode环境迁移
ide·vscode·编辑器
家有狸花14 小时前
VSCODE驯服日记(三):配置C++环境
c++·ide·vscode
yufei-coder17 小时前
掌握 C# 中的 LINQ(语言集成查询)
windows·vscode·c#·visual studio