Was starting to code Tetris with SFML and I got an error: 'sf::Window::isOpen' : function call missing argument list; use &sf::Window::isOpen' to create a pointer to member
It suggests using $sf::Window::isOpen
Although this works, I want to completely fix the problem so I don't have to deal with it later.
I found some other similar problems on stack overflow, but they were all with classes that the person made. I'm pretty new to C++ and SFML in general so the solutions to their problems looked like gibberish to me. But I did pick up that it had something to do with the libraries and that they needed to be static. I switched to the static library of SFML, but no cigar.
IsOpen is not a static class function, you need to call while(window.isOpen())
Edit: Also, static libraries and static class functions are two different concepts, it wouldn't matter if you compiled SFML statically or not, the user code would be the same. The word "static" is really overused
A static class function is one where the function can be called without an instance (object) of the class being needed
Thanks Ganado. The good news is, your solution works and I'm very appreciative of your help. The bad news is now I have tons of linker errors. (About 70.) Thanks for helping and I'll see if I can fix the other stuff on my own.
Thanks
Edit: I fixed the linker errors by switching the libraries back to non-static. I probably just screwed up putting it to static.