HI 大家好
我拿了天池 tianchi-0.0.2-build20130701的代码
使用VS2010(已装Qt的addin)直接导入build目录下的 tianchi.pro
编译出现以下错误:
1>ClCompile:
1> moc_tcmarqueelabel.cpp
1>..\..\output\qt5.2.1-vc2010_x86\shared\Debug\moc_tcmarqueelabel.cpp(142): error C2027: use of undefined type 'TcMarqueeLabelPrivate'
1> f:\thirdparty\qttianchi\tianchi-0.0.2-build20130701\tianchi-0.0.2-build20130701\output\qt5.2.1-vc2010_x86\shared\debug\../../../../include/tianchi/gui/tcmarqueelabel.h(28) : see declaration of 'TcMarqueeLabelPrivate'
1>..\..\output\qt5.2.1-vc2010_x86\shared\Debug\moc_tcmarqueelabel.cpp(142): error C2227: left of '->_q_openLink' must point to class/struct/union/generic type
1> moc_tcsortpaginationtableview.cpp
1>..\..\output\qt5.2.1-vc2010_x86\shared\Debug\moc_tcsortpaginationtableview.cpp(103): error C2027: use of undefined type 'TcSortPaginationTableViewPrivate'
1> f:\thirdparty\qttianchi\tianchi-0.0.2-build20130701\tianchi-0.0.2-build20130701\output\qt5.2.1-vc2010_x86\shared\debug\../../../../include/tianchi/gui/tcsortpaginationtableview.h(24) : see declaration of 'TcSortPaginationTableViewPrivate'
1>..\..\output\qt5.2.1-vc2010_x86\shared\Debug\moc_tcsortpaginationtableview.cpp(103): error C2227: left of '->_q_sortIndicatorChanged' must point to class/struct/union/generic type
1>..\..\output\qt5.2.1-vc2010_x86\shared\Debug\moc_tcsortpaginationtableview.cpp(104): error C2027: use of undefined type 'TcSortPaginationTableViewPrivate'
1> f:\thirdparty\qttianchi\tianchi-0.0.2-build20130701\tianchi-0.0.2-build20130701\output\qt5.2.1-vc2010_x86\shared\debug\../../../../include/tianchi/gui/tcsortpaginationtableview.h(24) : see declaration of 'TcSortPaginationTableViewPrivate'
1>..\..\output\qt5.2.1-vc2010_x86\shared\Debug\moc_tcsortpaginationtableview.cpp(104): error C2227: left of '->_q_paginatorClicked' must point to class/struct/union/generic type
1>..\..\output\qt5.2.1-vc2010_x86\shared\Debug\moc_tcsortpaginationtableview.cpp(105): error C2027: use of undefined type 'TcSortPaginationTableViewPrivate'
1> f:\thirdparty\qttianchi\tianchi-0.0.2-build20130701\tianchi-0.0.2-build20130701\output\qt5.2.1-vc2010_x86\shared\debug\../../../../include/tianchi/gui/tcsortpaginationtableview.h(24) : see declaration of 'TcSortPaginationTableViewPrivate'
1>..\..\output\qt5.2.1-vc2010_x86\shared\Debug\moc_tcsortpaginationtableview.cpp(105): error C2227: left of '->_q_onColumnShown' must point to class/struct/union/generic type
谁知道怎么解决不?