我安装了QT后,buid时提示main.o Error 127
-
- 帖子: 22
- 注册时间: 2010-07-07 9:09
我安装了QT后,buid时提示main.o Error 127
是不是我少安装了什么呢
- lerosua
- 论坛版主
- 帖子: 8455
- 注册时间: 2007-11-29 9:41
- 联系:
Re: 我安装了QT后,buid时提示main.o Error 127
build 啥啊,源码也没有。让人怎么帮你。
-
- 帖子: 22
- 注册时间: 2010-07-07 9:09
Re: 我安装了QT后,buid时提示main.o Error 127
我编译的是example systray
Running build steps for project systray...
Configuration unchanged, skipping qmake step.
Starting: "/usr/bin/make" -w
make: Entering directory `/home/user/qtsdk-2010.04/qt/examples/desktop/systray-build-desktop'
g++ -c -pipe -fpermissive -g -Wall -W -D_REENTRANT -DQT_SHARED -DQT_SVG_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I../systray -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -I../systray -I../systray -I. -o main.o ../systray/main.cpp
In file included from ../systray/main.cpp:44:
../systray/window.h:49: error: expected constructor, destructor, or type conversion before ‘class’
../systray/window.h:62: error: expected constructor, destructor, or type conversion before ‘class’
make: Leaving directory `/home/user/qtsdk-2010.04/qt/examples/desktop/systray-build-desktop'
make: *** [main.o] Error 1
The process "/usr/bin/make" exited with code %2.
Error while building project systray (target: Desktop)
When executing build step 'Make'
Running build steps for project systray...
Configuration unchanged, skipping qmake step.
Starting: "/usr/bin/make" -w
make: Entering directory `/home/user/qtsdk-2010.04/qt/examples/desktop/systray-build-desktop'
g++ -c -pipe -fpermissive -g -Wall -W -D_REENTRANT -DQT_SHARED -DQT_SVG_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I../systray -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -I../systray -I../systray -I. -o main.o ../systray/main.cpp
In file included from ../systray/main.cpp:44:
../systray/window.h:49: error: expected constructor, destructor, or type conversion before ‘class’
../systray/window.h:62: error: expected constructor, destructor, or type conversion before ‘class’
make: Leaving directory `/home/user/qtsdk-2010.04/qt/examples/desktop/systray-build-desktop'
make: *** [main.o] Error 1
The process "/usr/bin/make" exited with code %2.
Error while building project systray (target: Desktop)
When executing build step 'Make'
- comfanter
- 帖子: 190
- 注册时间: 2009-05-02 14:51
Re: 我安装了QT后,buid时提示main.o Error 127
修改源文件了还是文件损坏了?
-
- 帖子: 22
- 注册时间: 2010-07-07 9:09
Re: 我安装了QT后,buid时提示main.o Error 127
什么都没做,下了QT后,编译example就这样来comfanter 写了:修改源文件了还是文件损坏了?
- comfanter
- 帖子: 190
- 注册时间: 2009-05-02 14:51
Re: 我安装了QT后,buid时提示main.o Error 127
其他的能否编译呢?qihuasoft 写了:什么都没做,下了QT后,编译example就这样来comfanter 写了:修改源文件了还是文件损坏了?
-
- 帖子: 22
- 注册时间: 2010-07-07 9:09
Re: 我安装了QT后,buid时提示main.o Error 127
自己写的简单程序(只有一个窗体)是可以的comfanter 写了:其他的能否编译呢?qihuasoft 写了:什么都没做,下了QT后,编译example就这样来comfanter 写了:修改源文件了还是文件损坏了?
- meteormatt
- 帖子: 693
- 注册时间: 2008-02-24 14:15
- 系统: Ubuntu
- 来自: 江苏
- 联系:
Re: 我安装了QT后,buid时提示main.o Error 127
代码: 全选
The process "/usr/bin/make" exited with code %2.
Error while building project systray (target: Desktop)
When executing build step 'Make'
现在改用make了?
怀念以前的老台式机。可惜现在租的地方没条件用了。目前只能用笔记本和手机了。
- BigSnake.NET
- 帖子: 12522
- 注册时间: 2006-07-02 11:16
- 来自: 廣州
- 联系:
Re: 我安装了QT后,buid时提示main.o Error 127
代码: 全选
In file included from ../systray/main.cpp:44:
../systray/window.h:49: error: expected constructor, destructor, or type conversion before ‘class’
../systray/window.h:62: error: expected constructor, destructor, or type conversion before ‘class’
^_^ ~~~
要理解递归,首先要理解递归。
地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
要理解递归,首先要理解递归。
地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
-
- 帖子: 22
- 注册时间: 2010-07-07 9:09
Re: 我安装了QT后,buid时提示main.o Error 127
我这个可是示例程序阿
- meteormatt
- 帖子: 693
- 注册时间: 2008-02-24 14:15
- 系统: Ubuntu
- 来自: 江苏
- 联系:
Re: 我安装了QT后,buid时提示main.o Error 127
实例的也不一定都没错啊.qihuasoft 写了:我这个可是示例程序阿
怀念以前的老台式机。可惜现在租的地方没条件用了。目前只能用笔记本和手机了。
-
- 帖子: 25
- 注册时间: 2008-03-15 0:08
Re: 我安装了QT后,buid时提示main.o Error 127
这 就 怪 了 ,我 也 是 所有 示例 都 无法编译.meteormatt 写了:实例的也不一定都没错啊.qihuasoft 写了:我这个可是示例程序阿
-
- 帖子: 7
- 注册时间: 2010-10-24 11:50
Re: 我安装了QT后,buid时提示main.o Error 127
是否安装了build - essential的包?
用新立得搜索一下build - essential ,安装后就可以了。
用新立得搜索一下build - essential ,安装后就可以了。
-
- 帖子: 68
- 注册时间: 2005-05-02 12:27
Re: 我安装了QT后,buid时提示main.o Error 127
正好我昨天也遇到,其实是木有装G++qihuasoft 写了:是不是我少安装了什么呢
sudo apt-get install g++
欢迎访问我的blog
http://xf106.blog.163.com
http://xf106.blog.163.com
-
- 帖子: 9
- 注册时间: 2007-06-30 10:29
Re: 我安装了QT后,buid时提示main.o Error 127
的确是LS的方法。