R
Raj
Wrote a piece of code implementing singleton class with private
constructor and static function returing pointer the object.Code is
compiled successfully. But throwing a linking error Singletonclass.exe
: fatal error LNK1120: 1 unresolved externals.
when I tried to create object from main like this
singleton *obj = singleton::Instance();
Would anyone tell me why?
constructor and static function returing pointer the object.Code is
compiled successfully. But throwing a linking error Singletonclass.exe
: fatal error LNK1120: 1 unresolved externals.
when I tried to create object from main like this
singleton *obj = singleton::Instance();
Would anyone tell me why?