Menu

#13 TR 0.6.4: GCC 5+ can't compile "hiscore1.h"

Unstable_(example)
closed
Andrei
None
1
2019-03-29
2016-04-27
Andrei
No

The C++11 standard appears to break backwards compatibility with previous standards, by declaring the bool conversion operator for streams as explicit.

This breaks the HiScore1 code in 0.6.4 for GNU GCC versions 5 and above, as exemplified abstractly here.

Attached to this post is a patch for src/include/hiscore1.h that should fix the problem.

$ basename `pwd`
trigger-rally-0.6.4
$ ls
bin  data  doc  hiscore1.h.patch  src
$ patch -p 0 -i hiscore1.h.patch
$ cd src
$ make

EDIT: fixed the patch, added usage information.

1 Attachments

Discussion

  • Andrei

    Andrei - 2017-02-17

    @Ferdinand: indeed this problem was fixed in version 0.6.5, however this ticket is to be kept open for legacy users of 0.6.4 who may need the patch.

     
  • Onsemeliot

    Onsemeliot - 2019-02-05
    • status: open --> accepted
    • assigned_to: Andrei
     
  • Andrei

    Andrei - 2019-03-29
    • status: accepted --> closed
     

Log in to post a comment.