****SOLVED****
Okay, so I just installed SFML on Visual C++ and i'm working some tutorials and whatnot. Anyways i'm having a big problem. Here's my code.
// Libraries#include <SFML/Window.hpp>#include <iostream>using namespace sf;using namespace std;// Global variable, functions, classesint main(){//Create the window parameterssf::RenderWindow window(VideoMode(800, 600), "Grole");//(FPS = NUMBER OF TIMES GAME USUALLY LOOPS. NORMALLY 60 FPS)window.setFramerateLimit(60); //Game loop will repeat 60 times per secondbool running = true;//Game loop (infinite loop that reapeats until user decides to close game.while (running == true){//EVENTSEvent event;//Check all events that are happening in between each framewhile (window.pollEvent(event)){}//LOGIC//RENDERINGwindow.clear();window.display();}////////////////Clean upwindow.close();return 0;}
When I use sf::RenderWindow my compiler tells me "Error: namespace "sf" has no member "RenderWindow". Anyone know how to solve this problem?
Thanks!