Vscode and header files and other stuff/issues .... need help

recentely i switched form the one and only “turbo c++” to “vs code” and mingw w64 compiler and i am damm happy with it and its totally a chill flow while i write my “c”(nope not c++) programs. so now for my university i had to use graphics.h header for completing my university assingments and looking up on the internet i find SDL and after copying all files in my proper compiler directory.vs code says that the 

#include “SDL/SDL.h”

is not availabele
or as vs code says 

“resource”: “/c:/Users/Apratim Ray/Documents/AOA/Siomon-says/simon.c”,
“owner”: “_generated_diagnostic_collection_name_#1”,
“severity”: 8,
“message”: “cannot open source file “SDL/SDL.h””,
“startLineNumber”: 3,
“startColumn”: 1,
“endLineNumber”: 3,
“endColumn”: 21

#include <stdio.h>
#include <stdlib.h>
#include <SDL/SDL.h>

//this is the code i pasted it in

int main( int argc, char* args[] )
    //Start SDL

    //Quit SDL

    return 0;

and yes i copied in all the .a and .h and .dll files properly (i think so ???)

and these are my vscode’s json

    "configurations": [
            "name": "Win32",
            "includePath": [
            "defines": [
            "compilerPath": "C:\\compiler\\mingw64\\bin\\gcc.exe",
            "cStandard": "c11",
            "cppStandard": "c++17",
            "intelliSenseMode": "clang-x64"
    "version": 4

Not a VS Code expert, but pretty sure you need to add the SDL include folder to your include path settings in the JSON file.


"includePath": [

to something liike:

"includePath": [

(borrowing from stack-overflow).

1 Like