OpenRCT2/OpenRCT2

gcc 14 include issue on 0.4.11

Closed this issue · 1 comments

h3o66 commented

Operating System

Fedora 40

OpenRCT2 build

v0.4.11

Base game

RollerCoaster Tycoon 2

Area(s) with this issue?

This is a development issue

Describe the issue

when buildung with fedora 40 and gcc 14 there seem to be a issue regarding a include in src/openrct2/core/FileWatcher.cpp

this seems to be related to the commit
7b12667

to fix this, i did need to add back

#include <algorithm>

Steps to reproduce

build openrct2 on fedora 40

example:
https://copr.fedorainfracloud.org/coprs/birkch/openrct2/build/7420850/

snippet from build fail:

/builddir/build/BUILD/OpenRCT2-0.4.11/src/openrct2/core/FileWatcher.cpp
/builddir/build/BUILD/OpenRCT2-0.4.11/src/openrct2/core/FileWatcher.cpp: In member function ‘void FileWatcher::WatchDirectory()’:
/builddir/build/BUILD/OpenRCT2-0.4.11/src/openrct2/core/FileWatcher.cpp:235:48: error: ‘find_if’ is not a member of ‘std’; did you mean ‘find’?
  235 |                         auto findResult = std::find_if(
      |                                                ^~~~~~~

I made the dumb fix h3o66@ab067e4 for now, but not sure if this is a bug here or more gcc / compiler related

Attachments

No response