当前位置: 代码迷 >> QT开发 >> QTSDK1.2编译异常-list
  详细解决方案

QTSDK1.2编译异常-list

热度:89   发布时间:2016-04-25 05:02:28.0
QTSDK1.2编译错误-list
新装的sdk,作list实验,出错了,请朋友们帮忙看下,情况如下:
用最新的qtsdk1.2 ,系统为ubuntu10.04
做完系统后安装qtsdk,创建qt gui application,base class为QMainWindow,完成后编译ok。
然后在ui文件下,添加action,完成后保存,编译出现下面错误
C/C++ code
00:20:52: Running build steps for project list...00:20:52: Configuration unchanged, skipping qmake step.00:20:52: Starting: "/usr/bin/make" -wmake: Entering directory `/home/gaofudong/qtcode/list-build-desktop-Desktop_Qt_4_8_0_for_GCC__Qt_SDK__Release'g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../QtSDK/Desktop/Qt/4.8.0/gcc/mkspecs/linux-g++ -I../list -I../../QtSDK/Desktop/Qt/4.8.0/gcc/include/QtCore -I../../QtSDK/Desktop/Qt/4.8.0/gcc/include/QtGui -I../../QtSDK/Desktop/Qt/4.8.0/gcc/include -I. -I. -I../list -I. -o mainwindow.o ../list/mainwindow.cppIn file included from ../../QtSDK/Desktop/Qt/4.8.0/gcc/include/QtCore/qlist.h:51,                 from ../../QtSDK/Desktop/Qt/4.8.0/gcc/include/QtCore/qobject.h:50,                 from ../../QtSDK/Desktop/Qt/4.8.0/gcc/include/QtGui/qwidget.h:46,                 from ../../QtSDK/Desktop/Qt/4.8.0/gcc/include/QtGui/qmainwindow.h:45,                 from ../../QtSDK/Desktop/Qt/4.8.0/gcc/include/QtGui/QMainWindow:1,                 from ../list/mainwindow.h:4,                 from ../list/mainwindow.cpp:1:./list:1: error: stray '\177' in program./list:1: error: stray '\1' in program./list:1: error: stray '\1' in program./list:1: error: stray '\1' in programIn file included from ../../QtSDK/Desktop/Qt/4.8.0/gcc/include/QtCore/qlist.h:51,                 from ../../QtSDK/Desktop/Qt/4.8.0/gcc/include/QtCore/qobject.h:50,                 from ../../QtSDK/Desktop/Qt/4.8.0/gcc/include/QtGui/qwidget.h:46,                 from ../../QtSDK/Desktop/Qt/4.8.0/gcc/include/QtGui/qmainwindow.h:45,                 from ../../QtSDK/Desktop/Qt/4.8.0/gcc/include/QtGui/QMainWindow:1,                 from ../list/mainwindow.h:4,                 from ../list/mainwindow.cpp:1:./list:1:8: warning: null character(s) ignored./list:1: error: stray '\2' in program./list:1:18: warning: null character(s) ignored./list:1: error: stray '\3' in program./list:1:20: warning: null character(s) ignored./list:1: error: stray '\1' in program./list:1:22: warning: null character(s) ignored./list:1: error: stray '\320' in program./list:1: error: stray '\244' in program./list:1: error: stray '\4' in program./list:1: error: stray '\10' in program./list:1:30: warning: null character(s) ignored./list:1: error: stray '\204' in program./list:1:35: warning: null character(s) ignored./list:1:42: warning: null character(s) ignored./list:1:48: warning: null character(s) ignored./list:1: error: stray '\35' in program./list:1:52: warning: null character(s) ignored./list:1: error: stray '\6' in program./list:1:54: warning: null character(s) ignored./list:1:58: warning: null character(s) ignored./list:1: error: stray '\200' in program./list:1: error: stray '\4' in program./list:1: error: stray '\10' in program./list:1: error: stray '\200' in program./list:1: error: stray '\4' in program./list:1: error: stray '\10' in program./list:1: error: stray '\1' in program./list:1:71: warning: null character(s) ignored./list:1: error: stray '\1' in program./list:1:75: warning: null character(s) ignored。。。省略若干字。。。./list:17:3622: warning: null character(s) ignored./list:17:3624: warning: null character(s) ignored./list:17: error: stray '\20' in program./list:17:3628: warning: null character(s) ignored./list:17: error: stray '\20' in program./list:18:1: warning: null character(s) ignoredIn file included from ../../QtSDK/Desktop/Qt/4.8.0/gcc/include/QtCore/qlist.h:51,                 from ../../QtSDK/Desktop/Qt/4.8.0/gcc/include/QtCore/qobject.h:50,                 from ../../QtSDK/Desktop/Qt/4.8.0/gcc/include/QtGui/qwidget.h:46,                 from ../../QtSDK/Desktop/Qt/4.8.0/gcc/include/QtGui/qmainwindow.h:45,                 from ../../QtSDK/Desktop/Qt/4.8.0/gcc/include/QtGui/QMainWindow:1,                 from ../list/mainwindow.h:4,                 from ../list/mainwindow.cpp:1:./list:18: error: stray '\3' in program./list:18:4: warning: null character(s) ignored./list:18: error: stray '\250' in program./list:18:6: warning: null character(s) ignored./list:18: error: stray '\1' in program./list:18:14: warning: null character(s) ignored./list:18: error: stray '\2' in program./list:18:16: warning: null character(s) ignored./list:18: error: stray '\255' in program./list:18:18: warning: null character(s) ignored./list:18: error: stray '\20' in program./list:18:22: warning: null character(s) ignored./list:18: error: stray '\323' in program./list:18: error: stray '\257' in program./list:18: error: stray '\5' in program./list:18:33: warning: null character(s) ignored./list:18: error: stray '\4' in program。。。省略若
  相关解决方案