Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#144 wxvbam won't build since r1206

Unverified
open
nobody
None
5
2014-01-26
2014-01-26
pouar
No

I get this error here (r1205 compiles just fine):
/home/pouar/Downloads/ABS/vba-m-gtk-svn/src/vbam/src/wx/panel.cpp: In member function ‘void GameArea::LoadGame(const wxString&)’:
/home/pouar/Downloads/ABS/vba-m-gtk-svn/src/vbam/src/wx/panel.cpp:52:68: error: too many arguments to function ‘IMAGE_TYPE utilFindType(const char)’
IMAGE_TYPE t = badfile ? IMAGE_UNKNOWN : utilFindType(fn, fnbuf);
^
In file included from /home/pouar/Downloads/ABS/vba-m-gtk-svn/src/vbam/src/wx/wxvbam.h:21:0,
from /home/pouar/Downloads/ABS/vba-m-gtk-svn/src/vbam/src/wx/panel.cpp:1:
/home/pouar/Downloads/ABS/vba-m-gtk-svn/src/vbam/src/wx/../Util.h:25:12: note: declared here
IMAGE_TYPE utilFindType(const char
);

Discussion

    • pouar
      pouar
      2014-01-26

      didn't help.

       
  • pouar
    pouar
    2014-01-26

    Using Linux in case you didn't know.

     
  • pouar
    pouar
    2014-01-26

    changed line 52 in src/wx/panel.cpp from
    IMAGE_TYPE utilFindType(const char *file, char (&buffer)[2048]);
    to
    IMAGE_TYPE utilFindType(const char *file);
    and it worked

     
    Last edit: pouar 2014-01-26
    • pouar
      pouar
      2014-01-26

      ok that was a bad idea.

       
  • pouar
    pouar
    2014-01-26

    I know I got it this time, I moved
    IMAGE_TYPE utilFindType(const char *file, char (&buffer)[2048]);
    from src/Util.cpp to src/Util.h

    patch is here because you're going to need it.

     
    • Michael Novick
      Michael Novick
      2014-05-08

      broken, i added a fixed one.