Can't compile games-0.6.1 with gcc 4.01

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Guy Roussin wrote:
> .plugin.cpp: In member function 'virtual eOSState GameStart::ProcessKey(eKeys)':plugin.cpp:111: error: invalid lvalue in assignment
> make[2]: *** [plugin.o] Erreur 1
> 
> 111:        if (r) (int)k &= 0x7fff;

GCC 4 is very strict on enforcing ISO C++ rules. In this case, its no 
longer allowed to assign to a type casted variable. Try this variant:

if (r) k = (eKeys)((int)k & 0x7fff);

This is un-tested, dont blame me if it doesnt work.

Cheers,

Udo


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux