If i try to run the most basic tutorial program listed in the SFML website i get this error.
porcoddio.cpp:1:10: fatal error: include/SFML/Graphics.hpp: No such file or directory
1 | #include <include/SFML/Graphics.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
Please note that vscode recognizes the path when i type it in, it even suggests me the name of "Graphics.hpp", and there are no squiggly lines underneath #include <include/SFML/Graphics.hpp>in the text editor, it's only when i try to compile it that the terminal gives me this error, and the default path in the intellisense configuration is set to the correct one. I tried everything i could think of, i've been at it for 6 hours.
https://stackoverflow.com/questions/72580240/include-sfml-library-in-vscode-sfml-graphics-hpp-no-such-file-or-directory-gcc I also found this question which is similar to mine, and i tried the solution. It didn't work, still the same problem What is this? Here is my code:
#include <include/SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(shape);
window.display();
}
return 0;
}