请问现在再Mac下用Sublime Text编译任何C++程序都报错是为什么?
sublime吧
全部回复
仅看楼主
level 1
ofpwnju25953 楼主
In file included from /Users/czy/Desktop/dsdx.cpp:1:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iostream:38:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/ios:216:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:15:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:663:13: error: use of undeclared identifier '_LIBCPP_ASSERT'
_LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:723:13: error: use of undeclared identifier '_LIBCPP_ASSERT'
_LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:853:5: error: use of undeclared identifier '_LIBCPP_ASSERT'
_LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:974:5: error: use of undeclared identifier '_LIBCPP_ASSERT'
_LIBCPP_ASSERT(__s2 < __s1 || __s2 >= __s1+__n, "char_traits::copy overlapped range");
^
4 errors generated.
[Finished in 0.8s with exit code 1]
[shell_cmd: g++ "/Users/czy/Desktop/dsdx.cpp" -o "/Users/czy/Desktop/dsdx"]
[dir: /Users/czy/Desktop]
[path: /usr/bin:/bin:/usr/sbin:/sbin]
以上是具体的错误代码。求大神帮帮我该怎么办?现在完全就不能用了。
2015年05月13日 13点05分 1
level 6
同求,我的黑苹果上也出现有无法调用的问题?请问楼主你的是白苹果吗?
2015年05月14日 04点05分 2
是的。[泪]
2015年05月14日 05点05分
@ofpwnju25953 不过我有点好奇的是/usr/bin目录下很多文件都是大小都是0,不知是否跟这个有关
2015年05月14日 13点05分
1