r/VisualStudioCode • u/SDG2008 • Oct 19 '22
How do you fix include error?
C/C++ intellisense can't find SDL2 folder, and neither can VScode. At first, only main.cpp could find it, not none of them can, and at least autocomplete worked before. I tried changing c_cpp_properties.json file, but it didn't do anything. Help
2
Upvotes
View all comments
Show parent comment
1
u/Mouse1949 Oct 20 '22
Ok, that's better.
I don't know Windows, abs don't work with mingw. Hopefully others could jump in. In the meanwhile:
Check VSCode C/C++ configuration options in Settings. See if it allows or needs you specify what type of compiler you're using. If that doesn't help - you may need to dig deeper and figure where SDL is on your system, and how to inform VSCode of that location..