【发布时间】:2013-11-03 18:03:03
【问题描述】:
更新:
我最后通过重新安装命令行工具解决了这个问题,如link所示。 给您添麻烦了!
最初的问题
我刚刚升级到 OSX Mavericks,我不能再让编译器工作了。 我一直在使用带有 vim/sb2 的 macports 的 gcc48,一切正常。现在,我包含的任何库都会产生大量错误。我不是很有经验,我不知道该做什么,或寻找什么。我只是希望它像以前一样工作。以下是编译基本“hello world”程序时的内容:
In file included from /opt/local/include/gcc48/c++/bits/postypes.h:40:0,
from /opt/local/include/gcc48/c++/iosfwd:40,
from /opt/local/include/gcc48/c++/ios:38,
from /opt/local/include/gcc48/c++/ostream:38,
from /opt/local/include/gcc48/c++/iostream:39,
from ceva.cpp:1:
/opt/local/include/gcc48/c++/cwchar:44:19: fatal error: wchar.h: No such file or directory
#include <wchar.h>
如果您需要任何信息,请告诉我,我会提供给您。感谢您的耐心等待!
【问题讨论】:
-
XCode 和 clang 呢?
-
对于其他不适合的人,试试这个:
cd /Library/Developer/CommandLineTools/Packages/然后open .然后双击 pkg
标签: c++ macos gcc osx-mavericks