Posted on 2004-11-07
Hi this is probably a really simple mistake but I haven't programmed much in C++ and am self taught so any help is appreciated.
I'm exploring the singleton pattern and this is my simple class that has the following error:
[Linker error] undefined reference to `First::singleRef'
static First *singleRef;
static First* getInstance();
singleRef = new First;