当前位置: 技术问答>linux和unix
编译错误,请高手过来看看!!
来源: 互联网 发布时间:2015-07-18
本文导语: g++ -c -I/friendly-arm/Qt/embedded/2.3.1/include -pipe -fshared-data -DQWS -fno-exceptions -fno-rtti -O2 -Wall -fPIC -o imageedit.o imageedit.cpp imageedit.cpp:25: default argument given for parameter 1 of ` ImageEdit::ImageEdit(QWidget* = 0, const c...
g++ -c -I/friendly-arm/Qt/embedded/2.3.1/include -pipe -fshared-data -DQWS -fno-exceptions -fno-rtti -O2 -Wall -fPIC -o imageedit.o imageedit.cpp
imageedit.cpp:25: default argument given for parameter 1 of `
ImageEdit::ImageEdit(QWidget* = 0, const char* = 0)'
imageedit.h:32: after previous specification in `ImageEdit::ImageEdit(QWidget*
= 0, const char* = 0)'
imageedit.cpp:25: default argument given for parameter 2 of `
ImageEdit::ImageEdit(QWidget* = 0, const char* = 0)'
imageedit.h:32: after previous specification in `ImageEdit::ImageEdit(QWidget*
= 0, const char* = 0)'
make[1]: *** [imageedit.o] Error 1
make[1]: Leaving directory `/friendly-arm/Qt/qpe/1.3.1/library'
make: *** [library] Error 2
imageedit.cpp:25: default argument given for parameter 1 of `
ImageEdit::ImageEdit(QWidget* = 0, const char* = 0)'
imageedit.h:32: after previous specification in `ImageEdit::ImageEdit(QWidget*
= 0, const char* = 0)'
imageedit.cpp:25: default argument given for parameter 2 of `
ImageEdit::ImageEdit(QWidget* = 0, const char* = 0)'
imageedit.h:32: after previous specification in `ImageEdit::ImageEdit(QWidget*
= 0, const char* = 0)'
make[1]: *** [imageedit.o] Error 1
make[1]: Leaving directory `/friendly-arm/Qt/qpe/1.3.1/library'
make: *** [library] Error 2
|
在头文件中定义了 ImageEdit::ImageEdit 两个参数的default值,在cpp就不用在定义了吧?