cothromachd
@cothromachd
привет, я Халид, студент бауманки ;)

Как можно исправить ошибку, не обновляя macOS?

Не могу запустить линтеры, потому что требуют операционную систему минимум Catalina (macOS 10.15)
Но я не хочу обновляться до 10.15, наверняка возможно это исправить без обновления. Снизу прилагаю текст из консоли:
In file included from /Users/khalidmagnificent/Desktop/dz5/project/tests/src/main.cpp:1:
/Users/khalidmagnificent/Desktop/dz5/project/tests/include/utils.h:14:12: error: 'path' is unavailable: introduced in macOS 10.15
extern fs::path glob_test_dir;
           ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked
      unavailable here
class _LIBCPP_TYPE_VIS path {
                       ^
/Users/khalidmagnificent/Desktop/dz5/project/tests/src/main.cpp:3:10: error: 'path' is unavailable: introduced in macOS 10.15
fs::path glob_test_dir;
         ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/filesystem:763:29: note: 'path' has been explicitly marked
      unavailable here
  _LIBCPP_INLINE_VISIBILITY path() noexcept {}
                            ^
/Users/khalidmagnificent/Desktop/dz5/project/tests/src/main.cpp:3:10: error: '~path' is unavailable: introduced in macOS 10.15
fs::path glob_test_dir;
         ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/filesystem:791:3: note: '~path' has been explicitly marked
      unavailable here
  ~path() = default;
  ^
/Users/khalidmagnificent/Desktop/dz5/project/tests/src/main.cpp:3:5: error: 'path' is unavailable: introduced in macOS 10.15
fs::path glob_test_dir;
    ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked
      unavailable here
class _LIBCPP_TYPE_VIS path {
                       ^
/Users/khalidmagnificent/Desktop/dz5/project/tests/src/main.cpp:13:17: error: 'operator=' is unavailable: introduced in macOS 10.15
  glob_test_dir = argv[1];
                ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/filesystem:820:3: note: 'operator=' has been explicitly marked
      unavailable here
  operator=(const _Source& __src) {
  ^
/Users/khalidmagnificent/Desktop/dz5/project/tests/src/main.cpp:13:17: error: 'operator=<char *>' is unavailable: introduced in macOS 10.15
  glob_test_dir = argv[1];
                ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/filesystem:820:3: note: 'operator=<char *>' has been explicitly
      marked unavailable here
  operator=(const _Source& __src) {
  ^
6 errors generated.
make[3]: *** [project/tests/CMakeFiles/tests.dir/src/main.cpp.o] Error 1
make[2]: *** [project/tests/CMakeFiles/tests.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [test] Error 2
  • Вопрос задан
  • 147 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы