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

compilation error #335

Open
oferyaron opened this issue May 26, 2024 · 3 comments
Open

compilation error #335

oferyaron opened this issue May 26, 2024 · 3 comments

Comments

@oferyaron
Copy link

Hi,

I downloaded the project.
While compiling using MSVC I receive the following error:

Error C2039 'binary_function': is not a member of 'std' IlmImf-obj D:\pbrt-v3\src\ext\openexr\OpenEXR\IlmImf\ImfAttribute.cpp 66

Any idea why ?

@Dy111111
Copy link

you can replace the nameCompare struct code of ImfAttribute.cpp with below
struct NameCompare { bool operator()(const char *x, const char *y) const { return std::strcmp(x, y) < 0; } };

@qiyuewuyi2333
Copy link

you can replace the nameCompare struct code of ImfAttribute.cpp with below struct NameCompare { bool operator()(const char *x, const char *y) const { return std::strcmp(x, y) < 0; } };

thx bro, you are right. .👍

@oferyaron
Copy link
Author

oferyaron commented Jun 23, 2024 via email

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