Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

compilation fatal error header file g++

I'm getting this compilation error:

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

This is a very mysterious one, since i get it only once in a while..

Where do i go wrong?

like image 530
lim Avatar asked Apr 05 '11 09:04

lim


1 Answers

ETXTBSY is a standard errno value, the best explanation I've found being:

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".)

So, you might still be executing the program the compiler is trying to recreate/update...?

like image 124
Tony Delroy Avatar answered Sep 30 '22 12:09

Tony Delroy