I am trying to use SFML C++ and I want to use it with Visual Studio, I follow this tutorial on SFML website. But an error appeared:
E1696: cannot open source file "SFML/Graphics"
My code:
<code>#include <SFML/Graphics>
int main() {
return 0;
}
</code>
<code>#include <SFML/Graphics>
int main() {
return 0;
}
</code>
#include <SFML/Graphics>
int main() {
return 0;
}
I also tried adding “.hpp after “Graphics” but it didn’t really work.
I researched a lot on the Internet but look like none solve my problems:
-
Fatal error: SFML/Graphics.hpp: no such file or directory exists (Stack Overflow)
-
fatal error: SFMLGraphics.hpp: No such file or directory #include <SFMLGraphics.hpp> (Reddit)
-
Cannot open include file: ‘SFML/Graphics.hpp’: No such file or directory… (SFML Forums)
None of them solved my problem.
Thank you if you can help me!