假設我有分爲幾個較小的文件,一個C程序,包括相互如下:編譯順序和編譯的依賴
現在我有以下的疑問,因爲我正確到什麼程度。請糾正我在哪裏我錯了:
1. Which files have to recompiled after I make changes to process1.c?
main.c?
2. Which files have to recompiled after I make changes to process1.h?
main.c和process1.c?
3. Which files have to recompiled after I make changes to list.h?
input.c and process2.c?
文件'output.c'不能爲代碼的其餘部分提供任何有用的服務,因爲沒有聲明它提供給其他文件的函數的頭文件。所以,問題描述中存在一個錯誤。 'output.c'應該包含'process1.h',或者'output.c'包含一個'output.h'頭文件和一個或多個其他源文件。 –