Menu

#7 0.3.1: compilation failure in menumanager.cpp

open
nobody
None
5
2007-09-14
2007-09-14
No

On NetBSD-4.99.31/amd64 (gcc-4.1.3 20070620 prerelease) and using the patch from 1794497, I get further in the compilation, but it fails with:
if c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../guichan -DPKG_DATA_DIR="\"/usr/pkg/share/qonk/\"" -DPNG_NO_ASSEMBLER_CODE -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/SDL -DGLX_GLXEXT_LEGACY -I/usr/include -O2 -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/SDL -DGLX_GLXEXT_LEGACY -I/usr/include -MT menumanager.o -MD -MP -MF ".deps/menumanager.Tpo" -c -o menumanager.o menumanager.cpp; then mv -f ".deps/menumanager.Tpo" ".deps/menumanager.Po"; else rm -f ".deps/menumanager.Tpo"; exit 1; fi
menumanager.h:70: error: expected class-name before '{' token
menumanager.cpp: In constructor 'MenuManager::MenuManager(Main&)':
menumanager.cpp:28: error: no matching function for call to 'Menu::addAction(const char [5], QuitAction*)'
ui/menu.h:50: note: candidates are: void Menu::addAction(std::string, MenuAction*)
*** Error code 1

Discussion

  • Ben Asselstine

    Ben Asselstine - 2007-11-19

    Logged In: YES
    user_id=564659
    Originator: NO

    I have submitted a patch to the patch tracker that fixes this problem.

     
  • Thomas Klausner

    Thomas Klausner - 2007-11-20

    Logged In: YES
    user_id=205695
    Originator: YES

    The patch from benasselstine works for me, thank you!

     

Log in to post a comment.