在QT assistant中QT designer manual 中的Using a Component in Your Application里面有个例子。我选择The Direct Approach方法。按照要求用designer画好了imagedialog.ui 图形。然后copy了main 程序,放到同一文件夹中。分别用qmake –project,qmake和 make命令进行编译。显示出错,无法获得.exe文件。错误信息如下:
D:\Qt\4.0.0\lib/libqtmain.a(qtmain_win.o)(.text+0x26):qtmain_win.cpp: undefined reference to `__gxx_personality_sj0'
D:\Qt\4.0.0\lib/libqtmain.a(qtmain_win.o)(.text+0x1f7):qtmain_win.cpp: undefined reference to `qMain(int, char**)'
能告诉我是哪出了问题吗?
[ 此贴被XChinux在2005-09-22 08:37重新编辑 ]