Closed andrewssobral closed 1 year ago
Thanks for filling an issue!
Apple clang version 12.0.5 (clang-1205.0.22.11)
I think that version of clang is too old. We need a compiler with C++20 support. Could you try to upgrade to the version 13 or 14 ?
Hello @ogoffart ,
Just upgraded to clang version 14.0.0 and it works fine, thank you!
Copying byproducts `libslint_cpp.dylib` to /Users/andrewssobral/Projects/slint-ui/slint-cpp-template/build/_deps/slint-build
[ 0%] Built target _cargo-build_slint-cpp
[ 0%] Built target cargo-build_slint-cpp
[ 33%] Generating appwindow.h
[ 66%] Building CXX object CMakeFiles/my_application.dir/src/main.cpp.o
[100%] Linking CXX executable my_application
[100%] Built target my_application
andrewssobral@macbookpro slint-cpp-template %
andrewssobral@macbookpro slint-cpp-template % clang --version
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: x86_64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
I'm trying to build this template on my mac, but I am getting the following errors: Do you know how to fix this?
Additional info: