~/myspace/code/c/color$ gcc -M color.c color.o: color.c /usr/include/stdc-predef.h /usr/include/stdio.h \ /usr/include/x86_64-linux-gnu/bits/libc-header-start.h \ /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \ /usr/include/x86_64-linux-gnu/bits/wordsize...
# 1 "test.c"# 1 "<built-in>"# 1 ""# 31 ""# 1 "/usr/include/stdc-predef.h" 1 3 4# 32 "" 2# 1 "test.c"# 1 "/usr/include/stdio.h" 1 3 4# 27 "/usr/include/stdio.h" 3 4# 1 "/usr/include/x86_64-linux-gnu/bits/libc-header-start.h" 1 3 4# 33 "/usr/incl...
#1 "/usr/include/stdc-predef.h" 134 #0 "" 2 #1 "hello.c" #1 "/usr/include/stdio.h" 134 #27 "/usr/include/stdio.h" 34 #1 "/usr/include/x86_64-linux-gnu/bits/libc-header-start.h" 134 #33 "/usr/include/x86_64-linux-gnu/bits/libc-header-start.h" 34 #1 "/usr/include/fe...
# 1 "/usr/include/x86_64-linux-gnu/sys/cdefs.h" 1 3 4 # 385 "/usr/include/x86_64-linux-gnu/sys/cdefs.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 386 "/usr/include/x86_64-linux-gnu/sys/cdefs.h" 2 3 4 # 375 "/usr/include/features.h" 2 ...
#1"main.c"#1"<built-in>"#1"<命令行>"#1"/usr/include/stdc-predef.h"134#1"<命令行>"2#1"main.c"#1"/usr/include/stdio.h"134... #28"/usr/include/bits/types.h"234...typedefunsignedchar__u_char;typedefunsignedshortint__u_short;typedefunsignedint__u_int;typedefunsignedlongint__u_long...
func.o: func.c /usr/include/stdc-predef.h ../include/1/1.h \ /usr/include/stdio.h /usr/include/features.h /usr/include/sys/cdefs.h \ /usr/include/bits/wordsize.h /usr/include/gnu/stubs.h \ /usr/include/gnu/stubs-64.h \ ...
# 34 "/usr/include/x86_64-linux-gnu/bits/libc-header-start.h" 2 3 4 # 28 "/usr/include/stdio.h" 2 3 4 # 1 "hello.c" # 1 "" # 1 "" # 31 "" # 1 "/usr/include/stdc-predef.h" 1 3 4 # 32 "" 2 # 1 "hello.c" ...
12 # 385 "/usr/include/i386-linux-gnu/sys/cdefs.h" 3 4 13 # 1 "/usr/include/i386-linux-gnu/bits/wordsize.h" 1 3 4 14 # 386 "/usr/include/i386-linux-gnu/sys/cdefs.h" 2 3 4 15 # 375 "/usr/include/features.h" 2 3 4 ...
可能是因为在编译时没有指定-fPIC,记住:-fPIC即是编译参数,也是链接参数 relocation R_x86_64_32S against `vtable for CMyClass` can not be used when making a shared object 7) 下面的错误表示gcc编译时需要定义宏__STDC_FORMAT_MACROS,并且必须包含头文件inttypes.h test.cpp:35: error: expected `)' ...
fixed_t FixedMul ( fixed_t a, fixed_t b ) { return ((long long) a * (long long) b) >> FRACBITS; } They are generally re-written into assembly, at least for the i386 getting around the whole 64bit on a 32bit platform. ...