#54 g++ 3.1

Bug
closed-fixed
SciTE (626)
3
2002-07-05
2002-07-05
No

Scintella compiled fine w/ g++ 3.1 but SciTE doesn't
seems to like it. The problem seems to be the unnamed
function parameters with default values (e.g. "int =
0").

Discussion

  • Patrick Gleichmann

    Logged In: YES
    user_id=527104

    Sorry, mixed the g++ error-message up with the one of the
    borland ones - the g++ removes the parameter names...
    Here is a part of the error-message:
    "SciTEGTK.cxx:1811: default argument given for parameter 2
    of `void
    SciTEGTK::AddToPopUp(const char*, int = 0, bool = true)'
    SciTEGTK.cxx:186: after previous specification in `virtual
    void
    SciTEGTK::AddToPopUp(const char*, int = 0, bool = true)'
    SciTEGTK.cxx:1811: default argument given for parameter 3 of
    `void
    SciTEGTK::AddToPopUp(const char*, int = 0, bool = true)'
    SciTEGTK.cxx:186: after previous specification in `virtual
    void
    SciTEGTK::AddToPopUp(const char*, int = 0, bool = true)'"

     
  • Patrick Gleichmann

    Logged In: YES
    user_id=527104

    Sorry Iam really stupid today...
    the problem was that the default parameters were defined in
    both the declaration and the definition - the last violates
    the ansi standard.
    I attached a small patch.
    Apply in the scite/gtk directory.

     
  • Neil Hodgson

    Neil Hodgson - 2002-07-05

    Logged In: YES
    user_id=12579

    Committed to CVS.

     
  • Neil Hodgson

    Neil Hodgson - 2002-07-05
    • priority: 5 --> 3
    • assigned_to: nobody --> nyamatongwe
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks