Closed Hanano-Yuuki closed 6 years ago
the problem is solved,sorry for trouble caused
@Hanano-Yuuki ,hello , how did you solve this problem at last , I just have the same problem!
@Zeta-lime I think it may help you: https://github.com/Microsoft/vscode-cpptools/blob/master/Documentation/LanguageServer/MinGW.md
by the way,run g++ -Wp,-v -E -xc -x c++ NUL
to see the include files(if you use G++)
and the order is important
hope it can help you
Thank you this is exactly answer I am seek for!
发送自 Windows 10 版邮件应用
发件人: Hanano-Yuuki 发送时间: 2017年11月15日 23:17 收件人: Microsoft/vscode-cpptools 抄送: Phillins Lime; Mention 主题: Re: [Microsoft/vscode-cpptools] cannot open source file "corecrt.h"(dependency of "iostream") (#1237)
@Zeta-lime I think it may help you: https://github.com/Microsoft/vscode-cpptools/blob/master/Documentation/LanguageServer/MinGW.md by the way,run g++ -Wp,-v -E -xc -x c++ NUL to see the include files(if you use G++) and the order is important hope it can help you — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
You fixed this problem by changing to gcc as the compiler...For someone choosing MSVC, I fixed the "cannot open source file "corecrt.h" (dependency of "iostream")" issue by changing the include path in _c_cppproperties.json
"D:/Program Files/Microsoft/MSVC2017/VC/Tools/MSVC/14.12.25827/include/*", "C:/Program Files (x86)/Windows Kits/10/Include/10.0.10240.0/ucrt", "C:/Program Files (x86)/Windows Kits/10/Lib/10.0.10240.0/ucrt/x64",
I installed MSVC on D: drive, you may change that according.
You fixed this problem by changing to gcc as the compiler...For someone choosing MSVC, I fixed the "cannot open source file "corecrt.h" (dependency of "iostream")" issue by changing the include path in _c_cppproperties.json
"D:/Program Files/Microsoft/MSVC2017/VC/Tools/MSVC/14.12.25827/include/*", "C:/Program Files (x86)/Windows Kits/10/Include/10.0.10240.0/ucrt", "C:/Program Files (x86)/Windows Kits/10/Lib/10.0.10240.0/ucrt/x64",
I installed MSVC on D: drive, you may change that according.
The last line does the job. You can omit the rest lines safely.