# No RenderWindow class in SFML?

In their official tutorials it is said that to draw graphics on screen, i have to use RenderWindow instead of Window. But when i write sf:: RenderWindow window, error pops up saying that there is no RenderWindow in sf:: . I copy-pasted the code but it still does not works. What could possibly be the reason behind this ?

• #include <SFML/Graphics.hpp> ? May 1 '15 at 23:21
• @Alayric yes. I was using #include <SFML/Window.hpp> instead of #include <SFML/Graphics.hpp>, and that was causing the problem. May 3 '15 at 20:38