Re: linking error with static templated member

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

 



"Akos Rajna" <akimaki23@xxxxxxxxx> writes:

> and the linker is saying that Singleton<NetworkManager>::singleton is undefined

The C++ language requires a definition of the static class variable,
to go with the declaration.  I didn't see that in your code snippet.

template<class O> SingletonInstance<O> singleton;

Ian

[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