我用atl做了一个dll文件,其中.cpp文件中有如下定义:
typedef struct _NODE 
{
    BOOL bIsLeaf;               // TRUE if node has no children
    UINT nPixelCount;           // Number of pixels represented by this leaf
    UINT nRedSum;               // Sum of red components
    UINT nGreenSum;             // Sum of green components
    UINT nBlueSum;              // Sum of blue components
    struct _NODE* pChild[8];    // Pointers to child nodes
    struct _NODE* pNext;        // Pointer to next reducible node
}NODE;
我编译时报错:
C:\Suntendy\SuntendyTwaindll\DibEngine\CqOctree.cpp(27) : error C2040: 'NODE' : 'struct _NODE' differs in levels of indirection from 'int [][2]'
C:\Suntendy\SuntendyTwaindll\DibEngine\CqOctree.cpp(313) : error C2227: left of '->bIsLeaf' must point to class/struct/union
C:\Suntendy\SuntendyTwaindll\DibEngine\CqOctree.cpp(314) : error C2227: left of '->nPixelCount' must point to class/struct/union
C:\Suntendy\SuntendyTwaindll\DibEngine\CqOctree.cpp(315) : error C2227: left of '->nRedSum' must point to class/struct/union
C:\Suntendy\SuntendyTwaindll\DibEngine\CqOctree.cpp(316) : error C2227: left of '->nGreenSum' must point to class/struct/union
C:\Suntendy\SuntendyTwaindll\DibEngine\CqOctree.cpp(317) : error C2227: left of '->nBlueSum' must point to class/struct/union
C:\Suntendy\SuntendyTwaindll\DibEngine\CqOctree.cpp(326) : error C2227: left of '->pChild' must point to class/struct/union
C:\Suntendy\SuntendyTwaindll\DibEngine\CqOctree.cpp(338) : error C2070: illegal sizeof operand
C:\Suntendy\SuntendyTwaindll\DibEngine\CqOctree.cpp(341) : error C2227: left of '->bIsLeaf' must point to class/struct/union
这是什么原因,怎么解决。