SFML community forums

Help => General => Topic started by: udaniel on April 15, 2021, 06:04:10 pm

Title: 1st time using sfml
Post 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
Title: Re: 1st time using sfml
Post by: Stauricus on April 15, 2021, 06:10:18 pm
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:
Title: Re: 1st time using sfml
Post by: udaniel on April 15, 2021, 07:39:55 pm
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
Title: Re: 1st time using sfml
Post by: Stauricus on April 15, 2021, 10:20:41 pm
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
Title: Re: 1st time using sfml
Post by: udaniel on April 16, 2021, 05:39:42 pm
look at the attachments
Title: Re: 1st time using sfml
Post by: Stauricus on April 16, 2021, 05:57:57 pm
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
Title: Re: 1st time using sfml
Post by: udaniel on April 17, 2021, 11:09:15 pm
Now i have next problem it ran and then this showed up