LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 709|回复: 1

求助 Qt 问题

[复制链接]
发表于 2007-4-7 19:36:26 | 显示全部楼层 |阅读模式
calculator.h

[root@buffee ~]# qmake -project
[root@buffee ~]# qmake
[root@buffee ~]# make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT  -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.2.2/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.2.2/include/QtCore -I/usr/local/Trolltech/Qt-4.2.2/include/QtCore -I/usr/local/Trolltech/Qt-4.2.2/include/QtGui -I/usr/local/Trolltech/Qt-4.2.2/include/QtGui -I/usr/local/Trolltech/Qt-4.2.2/include -I. -Iqt_program -I. -I. -o main.o qt_program/main.cpp
qt_program/calculator.h: In constructor ‘lineEdit::lineEdit()’:
qt_program/calculator.h:7: 错误:expected unqualified-id before ‘->’ token
qt_program/calculator.h: In constructor ‘doubleSpinBox::doubleSpinBox()’:
qt_program/calculator.h:14: 错误:expected unqualified-id before ‘->’ token
qt_program/calculator.h: In constructor ‘doubleSpinBox_2::doubleSpinBox_2()’:
qt_program/calculator.h:22: 错误:expected unqualified-id before ‘->’ token
make: *** [main.o] 错误 1
发表于 2007-4-7 21:26:54 | 显示全部楼层
别qt了,先学学c++吧
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表