程序的编译过程:
预处理阶段:gcc -E test.c -o test.i
编译阶段:GCC -S test.i -o test.s
汇编阶段:GCC -c test.s -o test.o链接阶段:GCC test.o -o test
【Error】
test.o:file not recognized:File format not recognized
collect2:ld returned 1 exit status
原test.c中有错误
程序的编译过程:
预处理阶段:gcc -E test.c -o test.i
编译阶段:GCC -S test.i -o test.s
汇编阶段:GCC -c test.s -o test.o【Error】
test.o:file not recognized:File format not recognized
collect2:ld returned 1 exit status
原test.c中有错误
转载于:https://my.oschina.net/u/347414/blog/339120