qpe-1.4.0 컴파일 에러

chroma14의 이미지

kelp에 있는 자료와 몇몇 책들을 참고로 호스트 PC에서
에뮬까지 하고, ARM용 qpe를 만드려고 하는데...
Redhat 9.0에서 gcc-2.95.3 버전으로 qpe-1.4.0을 컴파일하는데,
아래와 같은 에러가 발생합니다. Qt/X11와 Qt/E 버전은 모두 2.3.2 입니다.
어떻게 접근을 해야될지...

arm-linux-g++ -c -I/opt/qt-arm/qte-2.3.2/include -pipe -DQWS -fno-exceptions -fno-rtti -O2 -Wall -W -fPIC 
-I../../library -I../../taskbar -o qimpeninput.o qimpeninput.cpp 
qimpeninput.cpp: In constructor `QIMPenInput::QIMPenInput(QWidget*, const 
char*, unsigned int)': 
qimpeninput.cpp:156: declaration of `f' shadows a parameter 
make[1]: *** [qimpeninput.o] 오류 1 
make[1]: 나감 `/opt/qt-arm/qpe-1.4.0/inputmethods/handwriting' 디렉토리 
make: *** [inputmethods/handwriting] 오류 2 

----------------------------------------------------------------

보태서 말씀드릴 것은... 위의 에러가 발생하기 전에 컴파일 하면서
아래와 같은 에러가 발생했었습니다. 그래서 소스를 아주 쫌 고쳐주니까..
컴파일이 계속되다가, 위의 에러가 발생된 것인데... 서로 연광성이 있어서
그런건가요? -_-;

----------------------------------------------------------------
+ 첫번째 에러 메세지.

arm-linux-g++ -c -I/opt/qt-arm/qte-2.3.2/include -pipe -DQWS -fno-exceptions -fno-rtti -O2 -Wall -W -fPIC -I. -o menubutton.o menubutton.cpp 
menubutton.cpp:105: default argument given for parameter 2 of `void 
MenuButton::insertItem(const QIconSet&, const QString& = QString::null)' 
menubutton.h:38: after previous specification in `void 
MenuButton::insertItem(const QIconSet&, const QString& = QString::null)' 
make[1]: *** [menubutton.o] 오류 1 
make[1]: 나감 `/opt/qt-arm/qpe-1.4.0/library' 디렉토리 
make: *** [library] 오류 2 

- 제가 취한 행동은?
vi qpe-1.4.0/library/menubutton.cpp

104 //void MenuButton::insertItem( const QIconSet& icon, const QString& text=QString::null ) 
105 void MenuButton::insertItem( const QIconSet& icon, const QString& text 

----------------------------------------------------------------
+ 두번째 에러 멧세지

imageedit.cpp:24: 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:24: 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] 오류 1 
make[1]: 나감 `/opt/qt-arm/qpe-1.4.0/library' 디렉토리 
make: *** [library] 오류 2 

- 내가 취한 행동은?
vi qpe-1.4.0/library/imageedit.cpp

23 //ImageEdit::ImageEdit( QWidget *parent = 0, const char *name = 0 ) 
24 ImageEdit::ImageEdit( QWidget *parent, const char *name) 
codebank의 이미지

class 함수의 인자 초기값은 정의할 때만 사용합니다.
위에 수정한 부분을보면 함수정의 때가 아닌 실제 함수구현에서 초기화를 하는군요.
예전에는 이부분이 경고로 넘어갔을지 모르지만 현재 나와있는 gcc에서는 에러로
표시합니다.
즉, 이런식의 표현은 전부형태의 표시는 전부 수정해야만 합니다.

P.S. : 질문의 내용이 설치 및 활용보다 프로그램 QnA에 어울려서 게시물을 옮깁니다.

------------------------------
좋은 하루 되세요.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.