Re: Xcode 12.4 requires c++17?
Posted by
dxli on
Jun 13, 2023; 8:46pm
URL: https://forum.librecad.org/Xcode-12-4-requires-c-17-tp5722934p5722939.html
I'm still not clear why your qglobal.h (which is used by every Qt) requires c++17.
c++14 is needed, and c++17 works fine, but we don't want c++14 to break.
ken rector wrote
@dixli, Before I saw your previous post I looked again at a stackoverflow item that suggested the problem might be the presence of both QT and QT@5. I did a brew uninstall QT. The make proceeded a little further but then stopped with a different error.
At that point I saw your previous post and set
QMAKE_CFLAGS = -std=c++1z
After a make clean the make finished and produced LibreCAD.app.
Should there be something about this in the build instructions?
Doesn't c++1y cause the inconsistent error even with the c17 compiler?