typedef CTypedPtrArray<CPtrArray, CMakeCommand*> CCmdArray; 定义了一个数组,但一下子报了很多错,c:\tmp\auxiliary.h(95) : error C2143: syntax error : missing ';' before '<'
c:\tmp\auxiliary.h(95) : error C2143: syntax error : missing ';' before '<'
c:\tmp\auxiliary.h(117) : warning C4091: 'typedef ' : ignored on left of 'int' when no variable is declared
c:\tmp\auxiliary.h(117) : error C2143: syntax error : missing ';' before '<'
c:\tmp\auxiliary.h(117) : error C2143: syntax error : missing ';' before '<'
c:\tmp\auxiliary.h(180) : error C2146: syntax error : missing ';' before identifier 'm_bufGroupInfo'
c:\tmp\auxiliary.h(180) : error C2501: 'CGroupInfoBuf' : missing storage-class or type specifiers
c:\tmp\auxiliary.h(180) : error C2501: 'm_bufGroupInfo' : missing storage-class or type specifiers
c:\tmp\auxiliary.h(185) : warning C4091: 'typedef ' : ignored on left of 'int' when no variable is declared
c:\tmp\auxiliary.h(185) : error C2143: syntax error : missing ';' before '<'
c:\tmp\auxiliary.h(185) : error C2143: syntax error : missing ';' before '<'
C:\tmp\auxiliary.cpp(939) : error C2065: 'm_bufGroupInfo' : undeclared identifier
C:\tmp\auxiliary.cpp(939) : error C2228: left of '.Add' must have class/struct/union type
C:\tmp\auxiliary.cpp(944) : error C2228: left of '.GetAt' must have class/struct/union type
C:\tmp\auxiliary.cpp(1022) : error C2228: left of '.GetAt' must have class/struct/union type
什么原因?