Menu

#1367 Compiler error C2065 in r4952

v0.9.11
closed-fixed
nobody
None
0.9.11
5
2013-12-30
2013-12-25
raven3
No

I built desmume(r4952) used by VS2010 SP1

slot2_auto.cpp
1>..\addons\slot2_auto.cpp(50): error C2065: 'selection' : undeclared identifier
1>..\addons\slot2_auto.cpp(51): error C2065: 'selection' : undeclared identifier
1>..\addons\slot2_auto.cpp(52): error C2065: 'selection' : undeclared identifier

//the relevant part of source code

ifdef HOST_WINDOWS

Guitar.Enabled  = (selection == NDS_SLOT2_GUITARGRIP)?true:false;
Piano.Enabled   = (selection == NDS_SLOT2_EASYPIANO)?true:false;
Paddle.Enabled  = (selection == NDS_SLOT2_PADDLE)?true:false;

slot2_auto.cpp

  • r4951 source code
  • r4952 source code

  • slot2_selected_type = selection;

  • mSelectedImplementation = slot2_List[selection];
  • slot2_selected_type = slot2_DetermineType();
  • mSelectedImplementation = slot2_List[slot2_selected_type];

"slot2_DetermineType()" is defined instead of "selection".

//temp fix (I think)

ifdef HOST_WINDOWS

Guitar.Enabled  = (slot2_DetermineType() == NDS_SLOT2_GUITARGRIP)?true:false;
Piano.Enabled   = (slot2_DetermineType() == NDS_SLOT2_EASYPIANO)?true:false;        Paddle.Enabled  = (slot2_DetermineType() == NDS_SLOT2_PADDLE)?true:false;

Discussion

  • raven3

    raven3 - 2013-12-25

    sorry, display is strange...

     
  • rogerman

    rogerman - 2013-12-30

    Fixed in r4954.

    This was due to some Windows front-end code being present in the core code. The code has been moved to the Windows front-end where it belongs.

     
  • rogerman

    rogerman - 2013-12-30
    • status: open --> closed-fixed
     

Anonymous
Anonymous

Add attachments
Cancel