• 7076阅读
  • 4回复

天池项目VS2010编译出现Error [复制链接]

上一主题 下一主题
离线bingyifeng
 

只看楼主 倒序阅读 楼主  发表于: 2014-11-14

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

谁知道怎么解决不?

<span style="color:blue ">淘宝,绿石斋</span> <a href="http://shop33295817.taobao.com“> <span style="color:blue ">各种水晶饰品,手链,项链 </span></a>
离线圣域天子

只看该作者 1楼 发表于: 2014-11-14
一年前的代码了
离线渡世白玉

只看该作者 2楼 发表于: 2014-11-14
建议你用Qt-Creator编译、、
我测试了用Qt-Creator一点问题都没有、、
还有我用的Qt 5.3.2
离线圣域天子

只看该作者 3楼 发表于: 2015-01-04
Tianchi2 也没法在 VC2010 下编译,一堆莫名其妙的错误。

鄙视一下 VC  
离线圣域天子

只看该作者 4楼 发表于: 2015-01-05
这个类的确在VC2010下编译不过,二版准备把一些模板类全部摘除
快速回复
限100 字节
 
上一个 下一个