I am a c# developper trying to do c++ things and I cannot understand the issue here:
namespace myNamespace
{
class Application
{
private:
Application(void);
~Application(void);
// Not copyable
Application(const Application&);
Application& operator= (const Application&);
static Application _instance;
[...]
public:
static Application& current(void);
};
}
(this is supposed to be a singleton...)
and this causes the error: "error LNK2001: unresolved external symbol "private: static class myNamespace::Application myNamespace::Application::_instance" (?_instance@Application@myNamespace@@0V12@A)"
Is it because I am using the class I am declaring in the class declaration?
Thanks a lot!