Hello,
Trying to compile openNURBS 8.21.25188.17001 on FreeBSD, with Clang 19.1.7 fails with this error:
FAILED: CMakeFiles/opennurbsStatic.dir/cmake_pch.hxx.pch
/usr/bin/c++ -DMY_ZCALLOC -DON_CMAKE_BUILD -DON_COMPILING_OPENNURBS -DZ_PREFIX -I/usr/ports/graphics/opennurbs/work/opennurbs-8.21.25188.17001/. -I/usr/ports/graphics/opennurbs/work/opennurbs-8.21.25188.17001/zlib/. -I/usr/ports/graphics/opennurbs/work/opennurbs-8
.21.25188.17001/android_uuid/. -O2 -pipe -DON_COMPILER_CLANG -DON_NEED_UTF8_WCHAR_T_TYPEDEF -DLIBICONV_PLUG -DON_LITTLE_ENDIAN -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -DLIBICONV_PLUG -isystem /usr/local/include -Wno-switch -O2 -
pipe -DON_COMPILER_CLANG -DON_NEED_UTF8_WCHAR_T_TYPEDEF -DLIBICONV_PLUG -DON_LITTLE_ENDIAN -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -DLIBICONV_PLUG -isystem /usr/local/include -DNDEBUG -std=gnu++17 -Winvalid-pch -fpch-instantiat
e-templates -Xclang -emit-pch -Xclang -include -Xclang /usr/ports/graphics/opennurbs/work/.build/CMakeFiles/opennurbsStatic.dir/cmake_pch.hxx -x c++-header -MD -MT CMakeFiles/opennurbsStatic.dir/cmake_pch.hxx.pch -MF CMakeFiles/opennurbsStatic.dir/cmake_pch.hxx.pc
h.d -o CMakeFiles/opennurbsStatic.dir/cmake_pch.hxx.pch -c /usr/ports/graphics/opennurbs/work/.build/CMakeFiles/opennurbsStatic.dir/cmake_pch.hxx.cxx
In file included from <built-in>:1:
In file included from /usr/ports/graphics/opennurbs/work/.build/CMakeFiles/opennurbsStatic.dir/cmake_pch.hxx:5:
In file included from /usr/ports/graphics/opennurbs/work/opennurbs-8.21.25188.17001/opennurbs.h:26:
/usr/ports/graphics/opennurbs/work/opennurbs-8.21.25188.17001/opennurbs_system.h:233:19: error: cannot combine with previous 'type-name' declaration specifier
233 | typedef ON__UINT8 wchar_t;
| ^
1 error generated.
Remark: ON_COMPILER_CLANG and ON_NEED_UTF8_WCHAR_T_TYPEDEF are defined.