• 4153阅读
  • 1回复

新建的环境eclipse+QT4.3+dev-cpp使用desinger画界面时dialog class出错UI未定义,版主帮下忙 [复制链接]

上一主题 下一主题
离线oscer
 
只看楼主 正序阅读 楼主  发表于: 2009-10-13
mingw32-make debug
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `D:/work'
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\qt\qt\include\QtCore" -I"..\qt\qt\include\QtGui" -I"..\qt\qt\include" -I"..\qt\qt\include\ActiveQt" -I"debug" -I"..\qt\qt\mkspecs\default" -o debug\adddialog.o adddialog.cpp
In file included from adddialog.cpp:1:
adddialog.h:5:26: ui_adddialog.h: No such file or directory
In file included from adddialog.cpp:1:
adddialog.h:16: error: `Ui' has not been declared
adddialog.h:16: error: ISO C++ forbids declaration of `AddDialogClass' with no type
adddialog.h:16: error: expected `;' before "ui"
adddialog.cpp: In constructor `AddDialog::AddDialog(QWidget*)':
adddialog.cpp:6: error: `ui' undeclared (first use this function)
adddialog.cpp:6: error: (Each undeclared identifier is reported only once for each function it appears in.)
mingw32-make[1]: *** [debug/adddialog.o] Error 1
mingw32-make[1]: Leaving directory `D:/work'
mingw32-make: *** [debug] Error 2



以上代码完全是按照http://support.oss.org.tw/wiki/index.php/Qt_Eclipse_Getting_Started 的步骤做的。。。。。。。。。。。
离线hehui

只看该作者 1楼 发表于: 2009-10-14
ui_adddialog.h文件没找到~
要放在adddialog.h里引用~
目录对不?
快速回复
限100 字节
 
上一个 下一个