Closed dfldylan closed 2 months ago
Hi, @dfldylan. Passing -DCMAKE_CXX_STANDARD=17
or newer standard should fix your issue.
When I ran this program on MacOS 14 with Apple clang version 15.0.0:
// clang++ std.cpp -o std && ./std
#include <iostream>
int main() {
// C++17 or later
#if __cplusplus >= 201703L
std::cout << "C++17 or later" << std::endl;
// C++14
#elif __cplusplus >= 201402L
std::cout << "C++14" << std::endl;
// C++11
#elif __cplusplus >= 201103L
std::cout << "C++11" << std::endl;
// C++98 or C++03
#elif __cplusplus >= 199711L
std::cout << "C++98 or C++03" << std::endl;
#else
std::cout << "Pre-standard C++" << std::endl;
#endif
return 0;
}
I got C++98 or C++03
, so it seems Apple Clang uses older C++ standards by default.
Thank you for your answer, but it doesn't work.
Maybe it is the issue of SPlisHSPlasH, I'll send there again
It looks like a symptom that the standard version is overridden inside SPlisHSPLasH CMake. I hope the maintainers will help you clarify it in the newly created issue.
Hi @dfldylan. I've seen a mention in https://github.com/InteractiveComputerGraphics/SPlisHSPlasH/issues/324 that the problem is solved. Do you still expect any fixes from oneDPL side?
Hi @dfldylan. I've seen a mention in InteractiveComputerGraphics/SPlisHSPlasH#324 that the problem is solved. Do you still expect any fixes from oneDPL side?
Indeed, I don't need it now. Thank you for your help. Best wishes!
it says /opt/homebrew/Cellar/onedpl/2022.0.0/include/oneapi/dpl/internal/common_config.h:20:6: error: "oneDPL requires the C++ language version not less than C++17"
But AppleClang 15 supports c++17 (maybe)
Project: https://github.com/InteractiveComputerGraphics/SPlisHSPlasH