Unable to open 'free_base.cpp': Unable to read file 'c:\Program Files\Microsoft VS

问题

vscode编写C++程序,使用microsoft C++

Unable to open 'cvt.cpp': Unable to read file 'c:\Program Files\Microsoft VS Code\minkernel\crts\ucrt\src\appcrt\convert\cvt.cpp' (Error: Unable to resolve non-existing file 'c:\Program Files\Microsoft VS Code\minkernel\crts\ucrt\src\appcrt\convert\cvt.cpp').
Unable to open 'free_base.cpp': Unable to read file 'c:\Program Files\Microsoft VS Code\minkernel\crts\ucrt\src\appcrt\heap\free_base.cpp' (Error: Unable to resolve non-existing file 'c:\Program Files\Microsoft VS Code\minkernel\crts\ucrt\src\appcrt\heap\free_base.cpp').

原因

为了使用一些老的函数在virtual studio上面运行

使用了#define _CRT_SECURE_NO_WARNINGS

Unable to open 'free_base.cpp': Unable to read file 'c:\Program Files\Microsoft VS

这个在vscode上面会出现问题,点击继续运行依然可以跑完程序。

解决方法

删除这一行。

Unable to open 'free_base.cpp': Unable to read file 'c:\Program Files\Microsoft VS

上一篇:E: Unable to locate package clang-7 E: Unable to locate package clang++-7 E: Couldn't find any


下一篇:Unable to allocate memory on node -1