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

Author Topic: Just downloaded and applied tutorial... its not working  (Read 2770 times)

0 Members and 4 Guests are viewing this topic.

druebey

  • Newbie
  • *
  • Posts: 6
    • View Profile
Just downloaded and applied tutorial... its not working
« on: May 27, 2015, 01:26:40 pm »
I keep getting Fatal error: SFML/Graphic.HPP: no such file or directory when I compile.

attachment is screenshot.


Windows XP SP 3 is the OS, Version 13.12 of codeblocks 32bit, and GCC 4.8.1 TDM (SJLJ) - 32-bit version of SFML 2.3.

I have watched youtube videos and like to try to figure out what is going on... but nothing seems to be working.

I have done everything to the letter on this... and its still not working. :o :'(

shadowmouse

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
Re: Just downloaded and applied tutorial... its not working
« Reply #1 on: May 27, 2015, 01:42:20 pm »
First line should be
 #include <SFML/Graphics.hpp>

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Just downloaded and applied tutorial... its not working
« Reply #2 on: May 27, 2015, 01:44:30 pm »
I have watched youtube videos
Don't do that. Most of them (CodeMadeEasy for example) are not recommendable, and we regularly have to smooth out the mistakes video tutorials teach, this thread being yet another example.

Instead, use the official tutorials on this website to learn SFML.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

druebey

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Just downloaded and applied tutorial... its not working
« Reply #3 on: May 27, 2015, 02:07:06 pm »
First line should be
 #include <SFML/Graphics.hpp>

still has no such file or directory

druebey

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Just downloaded and applied tutorial... its not working
« Reply #4 on: May 27, 2015, 02:08:37 pm »
I have watched youtube videos
Don't do that. Most of them (CodeMadeEasy for example) are not recommendable, and we regularly have to smooth out the mistakes video tutorials teach, this thread being yet another example.

Instead, use the official tutorials on this website to learn SFML.


ACTUALLY this is from the tutorial itself... I only watched the youtube videos to see if I did something wrong in my reading... AND I had not. So please dont make assumptions.

I copied directly from the tutorial and still am having issues.

shadowmouse

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
Re: Just downloaded and applied tutorial... its not working
« Reply #5 on: May 27, 2015, 02:10:01 pm »
Can you post screenshots of your linking?

druebey

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Just downloaded and applied tutorial... its not working
« Reply #6 on: May 27, 2015, 02:19:14 pm »
give me a few seconds to get those screenshooted from the other PC... I dont hook it up to the internet.


UPDATE: I fixed this issue, after reviewing the code itself also... kinda didnt copy well enough... BUT I now have 50 some odd errors now.


Gotta redo it all, jezz oh pete lol... Most of it was errors in my own side.

druebey

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Just downloaded and applied tutorial... its not working
« Reply #7 on: May 27, 2015, 02:29:06 pm »
examples of some of the debug errors:

(click to show/hide)

shadowmouse

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
Re: Just downloaded and applied tutorial... its not working
« Reply #8 on: May 27, 2015, 02:31:29 pm »
They look like linking errors to me. If you try making a new project and re-link, it will often solve the problem.

G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
Re: Just downloaded and applied tutorial... its not working
« Reply #9 on: May 27, 2015, 02:41:56 pm »
Are you trying to link statically? If so, there is a whole part about that in the official tutorial: link SFML dependencies.
If you want to link dynamically, don't define SFML_STATIC.

druebey

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Just downloaded and applied tutorial... its not working
« Reply #10 on: May 27, 2015, 02:47:09 pm »
Finally got it to work... was the static define in the #define folder...


Thank you all for your help... though it doesnt seem like much it really was alot. I though must say I am happy it happened, so if it happens again, I know what to do next. Gotta learn somethings the hard way.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11028
    • View Profile
    • development blog
    • Email
AW: Just downloaded and applied tutorial... its not working
« Reply #11 on: May 27, 2015, 05:27:31 pm »
Well if you had carefully read the tutorial instead of just looking at the images, the mistake wouldn't have happened in the first place. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything