我有一個項目,我經常修改標題,當我這樣做,並忘記make clean
然後make
,我得到各種奇怪的行爲。我目前正在使用Qt Creator作爲我的IDE,但是我發現這發生在一個獨立於Qt的項目上。我的項目變得相當龐大,每當我改變標題時都不得不重建。有什麼想法嗎?修改後不重建標題
以供將來參考:
如果使用QMAKE系統:
DEPENDPATH += . \ HeaderLocation1/ \ HeaderLocation2/ \ HeaderLocation2/HeaderSubLocation1/ \ HeaderLocation2/HeaderSubLocation2/ \ HeaderLocation2/HeaderSubLocation3/ \ HeaderLocation2/HeaderSubLocation4/ \ HeaderLocation2/HeaderSubLocation5/ \ HeaderLocation3/ \ HeaderLocation3/HeaderSubLocation1/ \ HeaderLocation3/HeaderSubLocation2/ \
怪異的行爲的,我還沒有在年齡突然拋出的錯誤,甚至庫代碼拋出內部錯誤將自己修改的代碼爲隨機位.. – Drise
這聽起來像你錯過了標題的一些依賴。 – juanchopanza
需要注意的事項:我的make文件是由QMake根據我的Qt .pro文件自動生成的。修改我的Makefile不是一種選擇,因爲當.pro文件更改時,會重新創建Makefile。 – Drise