Код: Выделить всё
In file included from hello.cpp:1:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iostream:43:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ios:223:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:49:
/usr/local/include/xlocale.h:32:10: fatal error: 'X11/Xfuncproto.h' file not found
32 | #include
| ^~~~~~~~~~~~~~~~~~
1 error generated.
< /code>
Я установил Xquartz раньше, но я не знаю, имеет ли это какое -либо отношение к этому, учитывая, что это выглядит так, будто ошибка происходит от Mac OS SDK, но IDK. Результат sudo find /-name xfuncproto.h IS < /p>
/usr/local/include/Xfuncproto.h
/Library/Developer/CommandLineTools/SDKs/MacOSX15.2.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11/Xfuncproto.h
/Library/Developer/CommandLineTools/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11/Xfuncproto.h
Подробнее здесь: https://stackoverflow.com/questions/794 ... -in-mac-os