I am trying to compile a SFML project, but when i try to compile main.cpp it throws errors. The code I am using is exactly what is in the sfml-linux documentation. I am using endavouros if that may have a part in the issue. I have been able to run sfml projects up until today when I create a new project everything broke. I have also tried building from source, but no fix. It seems to be an issue with linking, however when I include all the libraries needed to compile my code I am still faced with errors. I followed the sfml-linux documentation to create the project and this is the error I am faced with when I try to build:
/usr/bin/ld: main.o: in function `main':
main.cpp:(.text+0xaf): undefined reference to `sf::VideoMode::VideoMode(sf::Vector2<unsigned int> const&, unsigned int)'
collect2: error: ld returned 1 exit status
Thank you to anyone who can help me.