发表于 : 2008-04-08 12:45
e17下无法运行,提示找不到system tray
代码: 全选
richard@richard:~/downloads/qreadbook$ make
g++ -c -pipe -g -Wall -W -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I/usr/include/qt3 -o timedialog.o timedialog.cpp
timedialog.cpp:1:17: error: QtGui: 没有该文件或目录
In file included from timedialog.cpp:3:
timedialog.h:4:19: error: QDialog: 没有该文件或目录
timedialog.h:5:21: error: QCheckBox: 没有该文件或目录
timedialog.h:6:21: error: QGroupBox: 没有该文件或目录
timedialog.h:7:20: error: QSpinBox: 没有该文件或目录
timedialog.h:8:21: error: QTimeEdit: 没有该文件或目录
timedialog.h:9:23: error: QGridLayout: 没有该文件或目录
timedialog.h:10:18: error: QLabel: 没有该文件或目录
In file included from timedialog.cpp:3:
timedialog.h:13: 错误: expected class-name before ‘{’ token
timedialog.h:14: 错误: ISO C++ 不允许声明无类型的‘Q_OBJECT’
timedialog.h:16: 错误: expected ‘;’ before ‘public’
timedialog.h:22: 错误: expected `:' before ‘slots’
timedialog.h:24: 错误: expected primary-expression before ‘void’
timedialog.h:24: 错误: ISO C++ 不允许声明无类型的‘slots’
timedialog.h:24: 错误: expected ‘;’ before ‘void’
timedialog.h:31: 错误: ISO C++ 不允许声明无类型的‘QCheckBox’
timedialog.h:31: 错误: expected ‘;’ before ‘*’ token
timedialog.h:32: 错误: ISO C++ 不允许声明无类型的‘QLabel’
timedialog.h:32: 错误: expected ‘;’ before ‘*’ token
timedialog.h:33: 错误: ISO C++ 不允许声明无类型的‘QSpinBox’
timedialog.h:33: 错误: expected ‘;’ before ‘*’ token
timedialog.h:34: 错误: ISO C++ 不允许声明无类型的‘QGroupBox’
timedialog.h:34: 错误: expected ‘;’ before ‘*’ token
timedialog.h:35: 错误: ISO C++ 不允许声明无类型的‘QTimeEdit’
timedialog.h:35: 错误: expected ‘;’ before ‘*’ token
timedialog.h:36: 错误: ISO C++ 不允许声明无类型的‘QPushButton’
timedialog.h:36: 错误: expected ‘;’ before ‘*’ token
timedialog.h:37: 错误: ISO C++ 不允许声明无类型的‘QTimer’
timedialog.h:37: 错误: expected ‘;’ before ‘*’ token
timedialog.h:39: 错误: ISO C++ 不允许声明无类型的‘QPushButton’
timedialog.h:39: 错误: expected ‘;’ before ‘*’ token
timedialog.cpp:5: 错误: expected `)' before ‘*’ token
timedialog.cpp:64: 错误: expected constructor, destructor, or type conversion before ‘*’ token
timedialog.cpp:72: 错误: 成员函数‘void TimeDialog::writeSettings()’未在类‘TimeDialog’中声明
timedialog.cpp: In member function ‘void TimeDialog::readSettings()’:
timedialog.cpp:104: 错误: ‘QSettings’在此作用域中尚未声明
timedialog.cpp:104: 错误: expected `;' before ‘settings’
timedialog.cpp:107: 错误: ‘settings’在此作用域中尚未声明
timedialog.cpp:107: 错误: ‘Qt’未声明
timedialog.cpp:108: 错误: ‘Qt’未声明
timedialog.cpp:110: 错误: ‘clock’在此作用域中尚未声明
timedialog.cpp:110: 错误: ‘QTime’未声明
timedialog.cpp:111: 错误: ‘clockcheck’在此作用域中尚未声明
timedialog.cpp:111: 错误: ‘Qt’未声明
timedialog.cpp:113: 错误: ‘clocktimer’在此作用域中尚未声明
timedialog.cpp:115: 错误: ‘Qt’未声明
timedialog.cpp:117: 错误: ‘clock’在此作用域中尚未声明
timedialog.cpp:117: 错误: ‘QTime’未声明
timedialog.cpp:118: 错误: ‘clockcheck’在此作用域中尚未声明
timedialog.cpp:118: 错误: ‘Qt’未声明
timedialog.cpp:120: 错误: ‘clocktimer’在此作用域中尚未声明
timedialog.cpp:123: 错误: ‘Qt’未声明
timedialog.cpp:124: 错误: ‘Qt’未声明
timedialog.cpp:126: 错误: ‘time’在此作用域中尚未声明
timedialog.cpp:127: 错误: ‘timecheck’在此作用域中尚未声明
timedialog.cpp:127: 错误: ‘Qt’未声明
timedialog.cpp:129: 错误: ‘periodtimer’在此作用域中尚未声明
timedialog.cpp:131: 错误: ‘Qt’未声明
timedialog.cpp:133: 错误: ‘time’在此作用域中尚未声明
timedialog.cpp:134: 错误: ‘timecheck’在此作用域中尚未声明
timedialog.cpp:134: 错误: ‘Qt’未声明
timedialog.cpp:136: 错误: ‘periodtimer’在此作用域中尚未声明
timedialog.cpp: In member function ‘void TimeDialog::setclockstate()’:
timedialog.cpp:142: 错误: ‘clockcheck’在此作用域中尚未声明
timedialog.cpp:142: 错误: ‘Qt’未声明
timedialog.cpp:144: 错误: ‘clock’在此作用域中尚未声明
timedialog.cpp:147: 错误: ‘Qt’未声明
timedialog.cpp:149: 错误: ‘clock’在此作用域中尚未声明
timedialog.cpp: In member function ‘void TimeDialog::settimestate()’:
timedialog.cpp:156: 错误: ‘timecheck’在此作用域中尚未声明
timedialog.cpp:156: 错误: ‘Qt’未声明
timedialog.cpp:158: 错误: ‘time’在此作用域中尚未声明
timedialog.cpp:160: 错误: ‘Qt’未声明
timedialog.cpp:162: 错误: ‘time’在此作用域中尚未声明
timedialog.cpp: In member function ‘void TimeDialog::clockAlarmMessage()’:
timedialog.cpp:170: 错误: ‘QString’在此作用域中尚未声明
timedialog.cpp:170: 错误: expected `;' before ‘about’
timedialog.cpp:172: 错误: ‘QTime’未声明
timedialog.cpp:172: 错误: ‘clock’在此作用域中尚未声明
timedialog.cpp:174: 错误: ‘QMessageBox’未声明
timedialog.cpp:174: 错误: ‘about’在此作用域中尚未声明
timedialog.cpp:174: 错误: ‘QMessageBox’未声明
timedialog.cpp: In member function ‘void TimeDialog::timeAlarmMessage()’:
timedialog.cpp:180: 错误: ‘QString’在此作用域中尚未声明
timedialog.cpp:180: 错误: expected `;' before ‘about’
timedialog.cpp:182: 错误: ‘QMessageBox’未声明
timedialog.cpp:183: 错误: ‘about’在此作用域中尚未声明
timedialog.cpp:183: 错误: ‘QMessageBox’未声明
make: *** [timedialog.o] 错误 1