Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[build] error: « numeric_limits » is not member of « std » #15

Open
Suryavarman opened this issue Jan 4, 2024 · 3 comments
Open

Comments

@Suryavarman
Copy link

Mageia 9
gcc 12.3.0
CMake 3.26.4
Yafaray: v3.5.1

Yafaray/include/core_api/surface.h:118:26: error: « numeric_limits » is not member of « std »
      118 |         else return std::numeric_limits<float>::infinity();`

To fix it:
Add this two lines in the main CMakeLists.txt just before ####### Options ########

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
@Suryavarman Suryavarman changed the title Building process : Build process : error: « numeric_limits » is not member of « std » Jan 4, 2024
@Suryavarman Suryavarman changed the title Build process : error: « numeric_limits » is not member of « std » [build] error: « numeric_limits » is not member of « std » Jan 4, 2024
@luzpaz
Copy link

luzpaz commented Jan 13, 2024

bump

@DavidBluecame
Copy link
Member

Hello,
Thank you for reporting this building issue. This problem is already resolved in the libYafaRay v4.0 pre-alpha codebase, which is using the C++17 standard. The old YafaRay v3.5.1 is no longer being developed.

@DavidBluecame
Copy link
Member

That said, it is true that libYafaRay 4.0 pre-alpha code is still too unstable for any distros. In the mean time please feel free to keep your patch in the distro to build YafaRay v3.5.1, as its codebase will (almost certainly) not change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants