2011-04-05 169 views
5

我得到這個編譯錯誤:編譯致命錯誤頭文件G ++

fatal error: can’t create precompiled header f: Text file busy 
compilation terminated. 

這是一個非常神祕的一個,因爲我在一段時間得到它只有一次..

我到哪裏去錯誤?

+1

也許[this](http://www.cyberciti.biz/faq/binbash-bad-interpreter-text-file-busy/)可以幫助你嗎? – Xeo 2011-04-05 09:16:31

+0

你是否在發生這種情況時運行'make -j'?也許一次只限制一個編譯。 – Johnsyweb 2011-04-05 09:29:34

回答

5

ETXTBSY是一個標準的錯誤值,最好的解釋,我發現幸福:

An attempt to execute a file that is currently open for writing, or write to a file that is currently being executed. Often using a debugger to run a program is considered having it open for writing and will cause this error. (The name stands for "text file busy".)

所以,你可能仍然會執行編譯器試圖重新/更新程序...?