2011-04-05 329 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".)

所以,你可能仍然会执行编译器试图重新/更新程序...?