Post

Replies

Boosts

Views

Activity

Reply to Metal cpp compile errors
I think I have problem with my CMake files, because If I use defination within header files, I have no errors: #pragma clang diagnostic ignored "-Wgnu-anonymous-struct" #pragma clang diagnostic ignored "-Wdtor-name" #pragma clang diagnostic ignored "-Wold-style-cast" .... #include <Metal/Metal.hpp> ...
Topic: Graphics & Games SubTopic: General Tags:
Dec ’24
Reply to Metal cpp compile errors
Hi! thank you for your responce, new CMake: `target_compile_features(${MODULE_NAME} PRIVATE cxx_std_20) target_compile_options(${MODULE_NAME} PRIVATE "-Wno-error=gnu-anonymous-struct" "-Wno-error=dtor-name" "-Wno-error=old-style-cast" "-Wno-gnu" ... "-Wno-error=deprecated-declarations" )` Anonymous types declared in an anonymous union are an extension: MTLAccelerationStructure.hpp: union { struct { float x; float y; float z; }; ISO C++ requires the name after '::' to be found in the same scope as the name before '::' NSSharedPtr.hpp template <class _Class> _NS_INLINE NS::SharedPtr<_Class>::~SharedPtr() __attribute__((no_sanitize("undefined")))
Topic: Graphics & Games SubTopic: General Tags:
Nov ’24