SFML community forums

Help => Window => Topic started by: bluerune on July 23, 2012, 05:05:51 am

Title: Error C2039
Post by: bluerune on July 23, 2012, 05:05:51 am
Well i hope this is in the right place.

Following these two tutorials
http://www.youtube.com/watch?v=cDNo4bzrFW8

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!
Title: Re: Error C2039
Post by: Laurent on July 23, 2012, 08:02:11 am
Read the official tutorials/documentation instead. They are correct and up-to-date.
Title: Re: Error C2039
Post by: slotdev 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" ;)