Closed k-ye closed 1 year ago
Yeah! PR of suppressing clang warnings is nice, but it'd be better to rewrite typedef struct ...
syntax. This is to support old pre-C++11 compiler(C++98, C++03), but C++11 is now widely supported in most of C++ compilers so its we are better to deprecate compiling TinyEXR with pre-C++11 compiler(PR of this typedef struct
rewrite is also much appreciated)
it'd be better to rewrite typedef struct ... syntax
Thanks! I'm assuming that typedef struct ...
itself is all right. What the error is really about is that "identifier '_EXRVersion' is reserved because it starts with '_' followed by a capital letter [-Werror,-Wreserved-identifier]"
. So maybe renaming _EXRVersion
to EXRVersion
could solve the problem :-) ?
Oh I already did a fix in recent release
https://github.com/syoyo/tinyexr/blob/5c68638fe2f13312eeca5f2b438ecea21b29f8ac/tinyexr.h#L184
You should use recent tinyexr.h from the repo. vcpkg
is maintained someone and I don't know.
Great, thank you for the help!
Describe the issue
Hi, we encountered this problem when installing tinyexr via
vcpkg
, but I believe this is related to the compiler rather than the deps management system.To Reproduce
Simply build
tinyexr
withclang-13.0.1
. I'm onUbuntu 20.04.4 LTS
. Tested withclang-12
and it built alright.Here's the error log:
Happy to submit a PR around https://github.com/syoyo/tinyexr/blob/5c68638fe2f13312eeca5f2b438ecea21b29f8ac/CMakeLists.txt#L46
Please attach minimal and reproducible files(source codes, EXR files, etc)
Expected behavior A clear and concise description of what you expected to happen.
Environment