看了他发的东西我真是吐槽不能
A 创造了 B -> 我发现了 B 的错误 -> 我比 A 厉害
只能说给大神的逻辑跪了
我是写了一个一键下载和谐图片的脚本,然后用 tk 做了 GUI 打包放到 Win 下面用,用 Sinatra 写了一个博客,Sinatra+Nokogiri 写了一个爬快递和天气的小网页,前后端都看囫囵看了一下,然后又稀里糊涂回到 C/C++ 了,RoR 至今没开始下手,掩面 ing。。。
的确很慢,不过我的博客就我一个人看,所以,无所谓了。。。
#19 楼 @small_fish__ 同 F5 了好多次。。。
坚持下面这种 +1,这样代码中 symbol 的形式和 Hash 中键值对的形式都是统一的,代码可读性更强
月经 +1,反正我用 Ruby
虽然标题有点不通,但是 LZ 值得鼓励!加油!
要不试试用 Ctrl+C?
感觉算法这个话题能深入挖掘的太多了,坐等补充~~
Sizeup 官网有试用版,只有开机时会有 3 秒钟购买提示,功能没有任何限制,我现在用的就是这个。
当时刚从 Linux 转到 Mac 时也是为了这个问题蛋疼好久的说…
#53 楼 @luikore 感谢指导,我终于装好了(>﹏<)。。。
/usr/bin/clang
的版本号始终没变过,最后用Compile and use LLVM 3.3 on OS X这篇文章编译了一个外部的clang
,在用CC=''
指向这个外部的clang
搞定了。
刚刚发现,在我的 Mac 里,CLT 并没有安装到/usr/bin
这个目录下,而是安装到了/Library/Developer/CommandLineTools
下面,奇了怪了。。。
也就是说,我的 Mac 里目前存在四个clang
,/usr/bin
、/Library/Developer/CommandLineTools/usr/bin
、/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/
下面都有一个,还有我自己编译的一个。目前把终端中的clang
指向第二个目录下面的clang
,在终端中查看时版本号终于正常了,如果一开始就这么干,就不用蛋疼了。
饶了很多弯路,不过这次对 Mac 的系统目录结构有了进一步的了解,也算因祸得福吧(‾▽‾)~~
讨论节点木有了啊。。。
#24 楼 @luikore 刚刚进 log 文件看了一下,第一次出现错误的是在这个地方:
compiling proc.c
compiling file.c
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:68,
from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:8,
from file.c:23:
/usr/include/MacTypes.h: In function ‘Debugger’:
/usr/include/MacTypes.h:699: error: expected declaration specifiers before ‘__AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_8’
/usr/include/MacTypes.h:711: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_8’
/usr/include/MacTypes.h:758: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_8’
/usr/include/MacTypes.h:770: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_8’
/usr/include/MacTypes.h:782: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_8’
/usr/include/MacTypes.h:792: error: expected declaration specifiers before ‘#pragma’
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:8,
from file.c:23:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:335: error: storage class specified for parameter ‘CFTypeID’
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:336: error: storage class specified for parameter ‘CFOptionFlags’
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:337: error: storage class specified for parameter ‘CFHashCode’
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:338: error: storage class specified for parameter ‘CFIndex’
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:342: error: storage class specified for parameter ‘CFTypeRef’
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:344: error: storage class specified for parameter ‘CFStringRef’
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:345: error: storage class specified for parameter ‘CFMutableStringRef’
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:352: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CFPropertyListRef’
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:355: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CFComparisonResult’
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:362: error: expected declaration specifiers or ‘...’ before ‘*’ token
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:362: error: storage class specified for parameter ‘CFComparisonResult’
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:362: error: ‘CFComparisonResult’ declared as function returning a function
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:373: error: expected specifier-qualifier-list before ‘CFIndex’
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:375: error: storage class specified for parameter ‘CFRange’
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:378: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CFRangeMake’
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:390: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__CFRangeMake’
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:395: error: storage class specified for parameter ‘CFNullRef’
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:398: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CFNullGetTypeID’
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:401: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘kCFNull’
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:411: error: storage class specified for parameter ‘CFAllocatorRef’
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:415: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘kCFAllocatorDefault’
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:419: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘kCFAllocatorSystemDefault’
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:428: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘kCFAllocatorMalloc’
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:435: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘kCFAllocatorMallocZone’
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:442: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘kCFAllocatorNull’
...
后面就是各种.c
文件的编译错误,难道是因为系统版本太高?