0

Help me guys about this error!

enter image description here

how can i get rid of it?

What is the configuration of c_cpp_propertioes.json file in Linux?

Gama11
  • 31,714
  • 9
  • 78
  • 100
  • Error for `#include ` is "cannot open source file "stddef.h" (dependency of "iostream")" -- better to include full error text in your question. What is your linux (ubuntu/debian/???) and version? Did you install `build-essential` package? Can you compile simple c++ test programs with g++ in console? – osgx Sep 21 '17 at 17:46
  • `stddef.h` is a standard include file. On Debian (and probably Ubuntu) it's in the `linux-libc-dev` package. Make sure that's installed. – cdhowie Sep 21 '17 at 18:05
  • 1
    @osgx. Yup, i can compile all the programs with g++ in console. And i'm using Linux mint 18 which is based on Ubuntu 16.04 LTS. – RAHUL TRIVEDI Sep 22 '17 at 03:58
  • @RAHULTRIVEDI, check that your `c_cpp_properties.json` file of vscode (https://code.visualstudio.com/docs/languages/cpp - C/Cpp: Edit Configurations command from the Command Palette & Documentation/LanguageServer/c_cpp_properties.json.md) has all needed paths to include directories (try running g++ or clang++ on the example with `-H` option to get actual header search paths). Recommendation found at https://stackoverflow.com/questions/45855519/ by searching for error message. Probably VSCode have no idea of exact path into your version of g++ or clang++ internal compiler include dir. – osgx Sep 22 '17 at 04:29

1 Answers1

0

The error message "update your includePath" can happen for a variety of reasons, but in general it means that your VSCode C++ configuration needs to be adjusted (but not necessarily includePath itself).

This answer contains generic instructions on how to configure VSCode for C++.

Scott McPeak
  • 8,803
  • 2
  • 40
  • 79