SFML community forums
Help => General => Topic started by: geekz on April 09, 2022, 08:12:52 pm
-
I took a break from SFML development for a while and when I went back today, saw C++ extension had some updates so I installed it and I'm getting error squiggles even though the application works. Anyone got idea why? Is it because of the extension? I'd like to get rid of these error squiggles, it's just annoying...
Maybe worth to mention:
- I use WSL on Visual Studio Code, windows 10
- The version of VSC I use is 1.66.1
- I've tried to set ${workspaceFolder}/** in includePath but it still doesn't remove the error squiggles
Screenshot is attached, as you see, the application runs just fine but the SFML errors are everywhere, I just don't understand why.
-
well, you need at least to post what these errors are
probably not errors, but warnings
-
I recommend using CMake when working with VS Code, otherwise you'll need to maintain your own make file or similar, which isn't as great...
Either way, you need to somehow tell VS Code where to find the SFML headers.
If you use the pure C++ extension, you need to edit the c_cpp_properties.json (and tasks.json?) to add the path to the SFML include/ directory.
More details on how to configure VS Code can be found:
- https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference
- https://code.visualstudio.com/docs/cpp/config-wsl