SGI: Development

Explicit specialization of member .. must precede its first

I'm trying to compile scummvm 1.6.0 with the mipspro compilers. Right now, I'm stuck with their singleton hack. The error I'm getting is
Code:
cc-3234 CC: ERROR File = graphics/fonts/ttf.cpp, Line = 479
Explicit specialization of member
"Common::Singleton<Graphics::TTFLibrary>::_singleton" must precede
its first use.

template<> Graphics::TTFLibrary *Singleton<Graphics::TTFLibrary>::_singleton = 0;

Although the constuct is supposed to prevent this exact error:
Code:
/**
* Note that you need to use this macro from the Common namespace.
*
* This is because C++ requires initial explicit specialization
* to be placed in the same namespace as the template.
*/
#define DECLARE_SINGLETON(T) \
template<> T *Singleton<T>::_singleton = 0

} // End of namespace Common
Does anyone have an Idea how to work around this for MIPSPro C++?
Wrong namespace, maybe?

_________________
smit happens.

:Fuel: bigred , 700MHz R16K, 4GB RAM, V12, 6.5.30
:Indy: indy , 150MHz R4400SC, 256MB RAM, XL24, 6.5.10
probably posted from Image bruce , 2x2x2.5GHz PowerPC 970MP, 8GB RAM, Mac OS X 10.4.11
plus IBM POWER6 p520 * Apple Network Server 500 * HP C8000 * BeBox * Solbourne S3000 * Commodore 128 * many more...
The namespace is actually correct:
Code:
namespace Common {
DECLARE_SINGLETON(Graphics::TTFLibrary);
} // End of namespace Common

#endif
It turns out that MIPSPro is way more picky about this, and just shufflihg the DECLARE_SINGLETON just after the declaration of the :TTFLibrary makes this file compileable.