SFML community forums
Help => General => Topic started by: udaniel on April 15, 2021, 06:04:10 pm
-
I just downloaded sfml and its is giving me an error
[Error] SFML/Graphics.hpp: No such file or directory
help me please you can email me at dnlulett@gmail.com
-
well, your question is not even close to being a question yet... and no one is going to email you. for start, we need to know:
OS:
IDE:
SFML version:
how did you setup SFML:
-
windows os
i am using devc++
sfml2.4.0
and i watched this video
https://www.youtube.com/watch?v=-v0rCgaCoKU&t=247s
and when i run the example code thats the error i get on dev how do i fix this
[Error] SFML/Graphics.hpp: No such file or directory
-
DevC++ is not finding SFML include files (the headers). can you post prints of your project options (Libraries Directories and Include Directories, like in the image I attached)?
EDIT: also of the folder you did put SFML
-
look at the attachments
-
oh, okay
notice that you are including the following directory in your project options: C:\SFML\SFML-2.4.0\include\SFML
and, in your code, you are trying to include <SFML\Graphics.hpp>
DevC++ is searching for Graphics.hpp in the resulting path: C:\SFML\SFML-2.4.0\include\SFML\SFML\, which doesn't exists.
solution: remove \SFML from your include directories in project options. it should be simply C:\SFML\SFML-2.4.0\include
-
Now i have next problem it ran and then this showed up