SFML community forums

Help => General => Topic started by: geekz on April 09, 2022, 08:12:52 pm

Title: SFML shows error squiggles even though it works
Post 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:

Screenshot is attached, as you see, the application runs just fine but the SFML errors are everywhere, I just don't understand why.
Title: Re: SFML shows error squiggles even though it works
Post by: Stauricus on April 12, 2022, 12:58:19 pm
well, you need at least to post what these errors are
probably not errors, but warnings
Title: Re: SFML shows error squiggles even though it works
Post by: eXpl0it3r on April 12, 2022, 01:27:22 pm
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: