編譯一個最簡單的C程序

編譯一個最簡單的C程序 建立一個目錄cstudy, 建立文件 hello.c:spa /** * hello.c */ #include <stdio.h> int main () { printf("Hello C\n"); return 0; } $ cd cstudy 1 二階段編譯: 1) 源文件(hello.c)編譯(-c)成目標文件(hello.o)code
相關文章
相關標籤/搜索