首页| 论坛| 消息
主题:天池项目VS2010编译出现Error
bingyifeng发表于 2014-11-14 17:19
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
谁知道怎么解决不?
下一页 (1/2)
回帖(4):
4楼:这个类的确在VC2010下编译不过,二版准备把一些模板类全部摘除
3楼:Tianchi2 也没法在 VC2010 下编译,一堆莫名其妙的错误。
鄙视一下 VC
2楼:建议你用Qt-Creator编译、、
我测试了用Qt-Creator一点问题都没有、、
还有我用的Qt 5.3 ..

全部回帖(4)»
最新回帖
收藏本帖
发新帖