After installing the command line tools for XCODE I was able to compile/link/run successfully from the command line:
gcc-12 -lstdc++ -std=c++20 main.cpp -o main
This is using the GNU c++ compiler.
Now the question is: Is it possible to do the same from within XCODE: I.E. Use the GNU c++ compiler to compile code using C++20 dialect?
Please explain in detail how. (More than just select the C++ dialect: GNU++20 in the build settings, because that does NOT work!)
I get error: No member named 'views' in the namespace 'std::ranges'
Thank you.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: