查看完整版本: [-- 天池项目VS2010编译出现Error --]

QTCN开发网 -> 天池项目 -> 天池项目VS2010编译出现Error [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

bingyifeng 2014-11-14 17:19

天池项目VS2010编译出现Error


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

谁知道怎么解决不?


圣域天子 2014-11-14 20:29
一年前的代码了

渡世白玉 2014-11-14 21:17
建议你用Qt-Creator编译、、
我测试了用Qt-Creator一点问题都没有、、
还有我用的Qt 5.3.2

圣域天子 2015-01-04 14:26
Tianchi2 也没法在 VC2010 下编译,一堆莫名其妙的错误。

鄙视一下 VC  

圣域天子 2015-01-05 11:40
这个类的确在VC2010下编译不过,二版准备把一些模板类全部摘除


查看完整版本: [-- 天池项目VS2010编译出现Error --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Gzip disabled