Would you mind releasing the source code so that non-Windows users can enjoy your game?
Yes, that's the plan, only it's kinda broken right now since I'm trying to make it a better game. :] But I'm having some trouble so ... well.
Not really. You probably forgot to define the Screen::load_game function or didn't define it exactly with the same type as declared. At least the linker cannot find the definition.
I just had a public static bool, no function. :\ No idea what I'm doing wrong.
class Screen
{
public:
static bool load_game;
virtual int Run (sf::RenderWindow &App) = 0;
};
Edit:
1>square.obj : error LNK2001: unresolved external symbol "protected: static class sf::Image Square::m_White" (?m_White@Square@@1VImage@sf@@A)
1>square.obj : error LNK2001: unresolved external symbol "protected: static class sf::Image Square::m_Grey" (?m_Grey@Square@@1VImage@sf@@A)
Trying to follow
http://www.sfml-dev.org/tutorials/1.4/graphics-sprite.php to get static vars working, but it's not working. Checked
http://msdn.microsoft.com/en-us/library/f6xx1b1z(vs.71).aspx and I think it's got something to do with accessing the variables from other places. :\
Edit again:
Yes. When I remove the call from square.cpp the error vanishes. Hm. So calling a static variable from another file isn't allowed? :S