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

Author Topic: Error C2039  (Read 2423 times)

0 Members and 1 Guest are viewing this topic.

bluerune

  • Newbie
  • *
  • Posts: 1
    • View Profile
Error C2039
« on: July 23, 2012, 05:05:51 am »
Well i hope this is in the right place.

Following these two tutorials


and

http://www.youtube.com/watch?annotation_id=annotation_768168&feature=iv&src_vid=fMNlUfvWOwA&v=MgDFGkFDsbg

I did all they Said to do. Even retyped the code from 5:14 of the 2nd tutorial.
and i keep getting

1>c:\users\mike\documents\visual studio 2010\projects\blacksuntile\blacksuntile\main.cpp(10): error C2039: 'PollEvent' : is not a member of 'sf::RenderWindow'
1>          c:\sfml\sfml2\include\sfml\graphics\renderwindow.hpp(44) : see declaration of 'sf::RenderWindow'

Now i scrapped that project and did everything again right down to re downloading SFML 2.0 and re packing it.

So now here i am. any help would be great!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Error C2039
« Reply #1 on: July 23, 2012, 08:02:11 am »
Read the official tutorials/documentation instead. They are correct and up-to-date.
Laurent Gomila - SFML developer

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
Re: Error C2039
« Reply #2 on: July 23, 2012, 09:14:52 am »
Bluerune, always look at the official documentation as Laurent suggested. The problem with other varients is that they can quickly go out of date and lead you down the wrong path.

For instance, "PollEvent", like many other functions, had its case changed, so its now called "pollEvent" ;)

SFML 2.1