template<class T>
class colltraits{};template<class T>
class itemtraits{};template<class T>
dllexp LPCTSTR primKey(T*) 
{ ASSERT(0); return NULL; }template<class TColl> 
dllexp LPCTSTR primCollectionKey(TColl* v)
{
  ASSERT(0); return NULL;
}
#define DECL_TRAITS(T, TColl, Key) \
template<> class colltraits<TColl> : public traits<TColl, T>{};\
template<> class itemtraits<T> : public traits<TColl, T>{}; \
dllexp LPCTSTR primKey(T*) { return LPCTSTR(Key); } \
dllexp LPCTSTR primCollectionKey(TColl*) { return LPCTSTR(Key); }上面这句话,在VS2005里出现Error 1 error LNK2034: metadata inconsistent with COFF symbol table: symbol '
这是为什么呢?