Coder Social home page Coder Social logo

Comments (7)

tobbi avatar tobbi commented on September 21, 2024

Can you add #include <algorithm> to the top of the file src/editor/object_settings.cpp and see if that fixes it?

from supertux.

tulpenkiste avatar tulpenkiste commented on September 21, 2024

Can you add #include <algorithm> to the top of the file src/editor/object_settings.cpp and see if that fixes it?

Just tested this on my end, adding this include fixes the problem

from supertux.

biggeryetbetter avatar biggeryetbetter commented on September 21, 2024

Can you add #include <algorithm> to the top of the file src/editor/object_settings.cpp and see if that fixes it?

Yep, this fixes it. Do you want me to make a pull request for this or would you be able to just commit it straight to master? This is a pretty trivial change.

from supertux.

tobbi avatar tobbi commented on September 21, 2024

Sure, just make a pull request. One less thing for me to think about.

from supertux.

tobbi avatar tobbi commented on September 21, 2024

I don't quite understand how I've never experienced this bug on my system before.

from supertux.

ztianyang avatar ztianyang commented on September 21, 2024

I don't quite understand how I've never experienced this bug on my system before.

I think this is because of the version of gcc being used. The latest version of gcc on my Arch Linux system is 14.1.1. I recently experienced a similar issue when compiling Minetest 5.8.0, and I worked around this issue by installing the gcc13 package and using g++-13 as the c++ compiler. I was able to replicate this error in SuperTux using gcc 14. This error does not appear when I use gcc 13.

from supertux.

biggeryetbetter avatar biggeryetbetter commented on September 21, 2024

I was able to replicate this error in SuperTux using gcc 14.

I'm also running an Arch system and sure enough, I've got GCC 14 installed. I wonder if something changed in how it handles transitive includes.

from supertux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.