Ich kann kein C ++ - Programm mit iOstream -Header in Mac OS kompilierenC++

Programme in C++. Entwicklerforum
Guest
 Ich kann kein C ++ - Programm mit iOstream -Header in Mac OS kompilieren

Post by Guest »

Versuch, ein C ++ - Programm mit dem iOstream -Header zu kompilieren, führt zu dem Fehler < /p>

Code: Select all

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>
Ich habe Xquartz schon einmal installiert, aber ich weiß nicht, ob das etwas damit zu tun hat, wenn man bedenkt, dass es so aussieht, als ob der Fehler von einem Mac OS -SDK für mich ist, aber IDK. Das Ergebnis von sudo find /-name xfuncproto.h ist < /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
Ich habe versucht, alles zu deinstallieren, was mit GTK oder XORG mit dem Gebräu zu tun hat, aber nichts scheint das Problem behoben zu haben

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post