-4

I'm trying to compile C files in Visual Studio Code but I'm getting this errors:

"#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit "

I've searched through the forum and haven't seen a working solution

My C/C++ configuration is in the screenshot.

The problem is that Vs code can't access the header file that is stored in the same folder of my main c file.

New contributor
Allestrato is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
4
  • 1
    can't see screenshot Commented 16 hours ago
  • Please provide enough code so others can better understand or reproduce the problem. Commented 16 hours ago
  • Can you edit your question to include a minimal reproducible example? I don't think we can answer this otherwise. Commented 16 hours ago
  • 1
    If a header file is in the same folder as the main compilation unit, it should be #include "myheader.h" which directs the compiler to look first in the local folder, before the include paths. Commented 16 hours ago

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.