Re: Template linking problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Harvey,

Your Singleton class forward declares a "static Type* ptr", but doesn't
actually allocate the space anywhere.  (Unless you have it in a different
.cc file.)

Add this to your source file:

template <typename Type>
Type* Singleton<Type>::ptr;

HTH,
--Eljay


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux