Нет такого файла или каталога #include C++

Программы на C++. Форум разработчиков
Ответить
Гость
 Нет такого файла или каталога #include

Сообщение Гость »


I use Visual Studio Code, and i have a problem with the extension for the C++.
When i include iostream it returns me that error:

#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (C:\Users\****\Desktop\*****\test.cpp).C/C++(1696)


cannot open source file "iostream". Please run the 'Select IntelliSense Configuration...' command to locate your system headers.C/C++(1696)

I use msys64's ucrt64 as compiler. The most weird thing is that when i compile and execute it, it works well. It doesn't give me any errors.
This is my c_cpp_properties.json :

Код: Выделить всё

{
"configurations": [
{
"name": "Win64",
"includePath": [
"${workspaceFolder}/**",
"C:\\msys64\\ucrt64\\include/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "10.0.22621.0",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "${default}",
"compilerPath": "C:/msys64/ucrt64/bin/g++.exe"
}
],
"version": 4
}


Источник: https://stackoverflow.com/questions/781 ... e-iostream
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «C++»