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

MSVC 14.37 has compilation issue when building lmfAttribute.cpp #333

Open
SydianAndrewChen opened this issue Feb 28, 2024 · 0 comments
Open

Comments

@SydianAndrewChen
Copy link

I am trying to build from scratch and msvc reported an error when building ImfAttribute.cpp that error C2039: 'binary_function': is not a member of 'std'. @zhiyi1801 cross examined with me and his code using msvc 14.29 is fine. Later I found out that I need to add #include <functional> explicitly in ImfAttribute.cpp to compile successfully. In @zhiyi1801's case class binary_function is defined in xstdef.h.

Tested on Windows 10 | MSVC 14.37.32822 | Visual Studio 2022 | CMake 3.27

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

1 participant