After compiling/linking some .c .cpp and .h files, there are a couple of extra .h~ files show up. They seem to have the exact content of the original .h files, when I peek at them using cat. BTW, the OS is ubuntu
Asked
Active
Viewed 153 times
-1
-
7These are probably produced by you text editor, not by gcc. – leftaroundabout Apr 02 '12 at 00:39
-
you might as well see them before compiling ;) – P.P Apr 02 '12 at 00:41
-
1aha, you are right. seems to be from gedit. – digit plumber Apr 02 '12 at 00:42
1 Answers
4
The are backup files produced by text editors, notably emacs and gedit, among others. See How do I control how emacs makes backup files? for tips on controlling that.

Community
- 1
- 1

Adam Rosenfield
- 390,455
- 97
- 512
- 589
-
Also, Thank you and leftaroundabout. As leftaroundabout pointed out, it's from the editor I was using, gedit. – digit plumber Apr 02 '12 at 00:44