||=== Build: Debug in catch me (compiler: GNU GCC Compiler) ===|
PROJECTS\catch me\CGame.cpp||In member function 'void CGame::Init(sf::RenderWindow*)':|
PROJECTS\catch me\CGame.cpp|9|error: lvalue required as left operand of assignment|
PROJECTS\catch me\CGame.cpp|17|error: cannot declare member function 'static CGame& CGame::getInstance()' to have static linkage [-fpermissive]|
PROJECTS\catch me\CGame.cpp|20|error: invalid initialization of non-const reference of type 'CGame&' from an rvalue of type 'CGame*'|
PROJECTS\catch me\CGame.cpp|21|warning: control reaches end of non-void function [-Wreturn-type]|
||=== Build failed: 3 error(s), 1 warning(s) (0 minute(s), 0 second(s)) ===|
well it looks like GetWindow will return you something (i dont know anything about SFML), but then you're trying to assign x to it, which looks a bit wrong.
What is GetWindow() supposed to return?
Maybe you need setWindow instead? If such a method exists that is?
Or you are supposed to be assigning the return value of getWindow to x? i.e. you need to do this:
x = CGame::getInstance().getWindow();
All guesswork on my account though sorry :)
edit: looking at how you are calling it in main() i'd go with my last suggestion.