Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: 1st time using sfml  (Read 2829 times)

0 Members and 1 Guest are viewing this topic.

udaniel

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
1st time using sfml
« 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

Stauricus

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
    • A Mafia Graphic Novel
    • Email
Re: 1st time using sfml
« Reply #1 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:
Visit my game site (and hopefully help funding it? )
Website | IndieDB

udaniel

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Re: 1st time using sfml
« Reply #2 on: April 15, 2021, 07:39:55 pm »
windows os
i am using devc++
sfml2.4.0
and i watched this video

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

Stauricus

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
    • A Mafia Graphic Novel
    • Email
Re: 1st time using sfml
« Reply #3 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
Visit my game site (and hopefully help funding it? )
Website | IndieDB

udaniel

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Re: 1st time using sfml
« Reply #4 on: April 16, 2021, 05:39:42 pm »
look at the attachments

Stauricus

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
    • A Mafia Graphic Novel
    • Email
Re: 1st time using sfml
« Reply #5 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
Visit my game site (and hopefully help funding it? )
Website | IndieDB

udaniel

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Re: 1st time using sfml
« Reply #6 on: April 17, 2021, 11:09:15 pm »
Now i have next problem it ran and then this showed up