These are the errors.
I include the autoCounter.h in the other header but still cant see it.
It looks like the object has never been created or somthing with the compilation order
1 2 3 4 5 6
/home/subuntu/programming/c++/cilkImageExceptions/image.cpp:20: undefined reference to `AutoCounter<IMAGE::Image>::increase()'
image.o: In function `~Image':
/home/subuntu/programming/c++/cilkImageExceptions/image.cpp:26: undefined reference to `AutoCounter<IMAGE::Image>::decrease()'
image.o: In function `__static_initialization_and_destruction_0':
/home/subuntu/programming/c++/cilkImageExceptions/image.cpp:15: undefined reference to `AutoCounter<IMAGE::Image>::AutoCounter()'
/home/subuntu/programming/c++/cilkImageExceptions/image.cpp:15: undefined reference to `AutoCounter<IMAGE::Image>::~AutoCounter()'