|
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 |
|