Menu

#751 SVN NSIS Menu FTBFS on Debian GNU/Linux

2.0 Series
closed-fixed
General (291)
5
2008-02-23
2008-02-23
Paul Wise
No

g++ -o "build/release/NSIS Menu/nsismenu/nsismenu.o" -c -Wno-write-strings -Wall -g -O2 -O2 -Wall -fno-strict-aliasing -pthread -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 "Contrib/NSIS Menu/nsismenu/nsismenu.cpp"
Contrib/NSIS Menu/nsismenu/nsismenu.cpp:79: error: ISO C++ forbids taking the address of a bound member function to form a pointer to member function. Say '&MyFrame::OnLink'
Contrib/NSIS Menu/nsismenu/nsismenu.cpp: In constructor 'MyFrame::MyFrame(const wxString&, const wxPoint&, const wxSize&)':
Contrib/NSIS Menu/nsismenu/nsismenu.cpp:142: error: 'nsisicon_xpm' was not declared in this scope

Discussion

  • Amir Szekely

    Amir Szekely - 2008-02-23
    • assigned_to: nobody --> kichik
     
  • Amir Szekely

    Amir Szekely - 2008-02-23

    Logged In: YES
    user_id=584402
    Originator: NO

    Since when do we have a working wxWidgets version?

     
  • Amir Szekely

    Amir Szekely - 2008-02-23

    Logged In: YES
    user_id=584402
    Originator: NO

    I can't build it on linux, you'll have to fix it yourself.

    It seems like making OnLink static should solve the first one.
    The second one is a bit more tricky. wxWidgets probably expects us to create the icon using another macro as well.

     
  • Paul Wise

    Paul Wise - 2008-02-23

    Logged In: YES
    user_id=35028
    Originator: YES

    Making OnLink static doesn't work:

    g++ -o "build/release/NSIS Menu/nsismenu/nsismenu.o" -c -Wno-write-strings -Wall -g -O2 -O2 -Wall -fno-strict-aliasing -pthread -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 "Contrib/NSIS Menu/nsismenu/nsismenu.cpp"
    Contrib/NSIS Menu/nsismenu/nsismenu.cpp:79: error: ISO C++ forbids taking the address of a bound member function to form a pointer to member function. Say '&MyFrame::OnLink'
    Contrib/NSIS Menu/nsismenu/nsismenu.cpp: In constructor 'MyFrame::MyFrame(const wxString&, const wxPoint&, const wxSize&)':
    Contrib/NSIS Menu/nsismenu/nsismenu.cpp:142: error: 'nsisicon_xpm' was not declared in this scope
    Contrib/NSIS Menu/nsismenu/nsismenu.cpp: At global scope:
    Contrib/NSIS Menu/nsismenu/nsismenu.cpp:147: error: cannot declare member function 'void MyFrame::OnLink(wxHtmlLinkEvent&)' to have static linkage

     
  • Amir Szekely

    Amir Szekely - 2008-02-23

    Logged In: YES
    user_id=584402
    Originator: NO

    You've declared it static in the wrong spot. You need to do it in the class definition and not in the global scope.

     
  • Paul Wise

    Paul Wise - 2008-02-23
    • labels: --> General
    • milestone: --> 2.0 Series
    • assigned_to: kichik --> pabs3
    • status: open --> closed-fixed
     
  • Paul Wise

    Paul Wise - 2008-02-23

    Logged In: YES
    user_id=35028
    Originator: YES

    Fixed in SVN r5554.

     

Log in to post a comment.