Login  Register

Re: libdxfrw build error on Mac

Posted by dxli on Jun 11, 2023; 5:43am
URL: https://forum.librecad.org/libdxfrw-build-error-on-Mac-tp5722902p5722912.html

First, clang-12 is good for c++17. Second, we are NOT using c++17 in LibreCAD yet.

currently, we are only using c++14. Actually, c++14 was only being used in LibreCAD recently, but we shouldn't have compiler support issues for C++14 in 2023 now.

The issues of the "override" specifier should be fixed, and since these changes won't introduce any behavior change (if done properly), I have merged them into both LibreCAD_2 and LibreCAD_3.


kenr wrote
@armin,  I have installed Xcode 12.4 which is the latest version supported by Mac OSX Catalina which is old stuff for the Mac and no longer supported.

Cmake reports this about it.

-- The C compiler identification is AppleClang 12.0.0.12000032
-- The CXX compiler identification is AppleClang 12.0.0.12000032

LibreCAD build document doesn't say much about what compiler, just this.

On OS/X 10.9 or newer, use spec macx-g++ is the default. Alternatively, you may use the system default clang++ compiler instead of gcc。


I'm interested because I can't build LibreCAD because of some ++17 feature that I may ask about later.


Would you consider this a more modern compiler?
Would other Mac users be using an older version than this?