啥都不说了, sigh
transparentmask$ gcc -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5664~89/src/configure –disable-checking –enable-werror –prefix=/usr –mandir=/share/man –enable-languages=c,objc,c++,obj-c++ –program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ –with-slibdir=/usr/lib –build=i686-apple-darwin10 –program-prefix=i686-apple-darwin10- –host=x86_64-apple-darwin10 –target=i686-apple-darwin10 –with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5664)
transparentmask$ gcc test.c -o test
transparentmask$ ./test
111122211
transparentmask$ cat test.c
#include <stdio.h> #include <stdlib.h> int main() { char s[10] = { [0 ... 8] = '1', [4 ... 6] = '2', [9] = 0 }; printf("%s\n", s); return 0; }
擦,酱紫居然也行……
[回复]
透明de面具 回复:
11月 29th, 2010 at 14:48
@KingsamChen, GNU的扩展…很疯狂
[回复]
你咋开始用terminal写代码编译?
[回复]
透明de面具 回复:
12月 6th, 2010 at 16:19
@cclv, 偶尔玩玩一般都是直接vim+gcc的
[回复]