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

发布时间:2026/5/22 6:14:48

vscode cout 出现 Segmentation fault 的错误的解决方法 前人之述备矣看看调试信息那里报错什么如果是libstdc±6.dll![Unknown/Just-In-Time compiled code]说明libstdc±6.dll确实有问题。和网上的其他文章写的一样。运行where.exe libstdc±6.dll出现(base)PSD:\4Projects\STM32\archive where.exe libstdc-6.dll D:\2Environment\anaconda3\Library\mingw-w64\bin\libstdc-6.dll D:\2Environment\msys64\ucrt64\bin\libstdc-6.dll D:\2Environment\gnuplot\bin\libstdc-6.dll D:\2Environment\pdf2svg\libstdc-6.dll说明确实是anaconda3导致的这时候就应该让msys64\ucrt64\bin\或者你自己的编译器位置的环境变量在第一个如果已经在第一个了注意这里的(base)好吧。。。之前装anaconda3导致的conda config --set auto_activate false执行这条指令重启powershell和vscode就好了

相关新闻