#14 non-lvalue in decrement on line 664

closed
Davy Durham
5
2003-06-26
2003-02-26
Davy Durham
No

If you're not using the latest gcc/libstdc++ stuff then you may receive an error when building ReZound that looks something like:

CMainWindow.cpp -o CMainWindow.o CMainWindow.cpp: In method `void CMainWindow::actionMenuCommandTriggered(CActionMenuCommand *)': CMainWindow.cpp:664: non-lvalue in decrement
make[2]: *** [CMainWindow.lo] Error 1

To fix this, just change line 644 in src/frontend_fox/CMainWindow.cpp

from
recentActions.erase(--recentActions.end());

to
recentActions.pop_back();

This should fix the problem.

Thanks

Discussion

  • Serge Gebhardt
    Serge Gebhardt
    2003-03-03

    Logged In: YES
    user_id=468155

    Or change from
    recentActions.erase(--recentActions.end());

    to
    recentActions.erase(recentActions.end()-1);

     
  • Davy Durham
    Davy Durham
    2003-03-04

    Logged In: YES
    user_id=28588

    ahh.. doh!, that would have been too easy :)

     
  • Davy Durham
    Davy Durham
    2003-06-26

    • status: open --> closed
     
  • Davy Durham
    Davy Durham
    2003-06-26

    Logged In: YES
    user_id=28588

    fixed after 0.8.0beta release