This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Inconsistent Compilation - Precompiled Header
- From: GlassEyeSlim <white_flag_03 at hotmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 20 Feb 2006 16:52:28 -0800 (PST)
- Subject: Inconsistent Compilation - Precompiled Header
- References: <3041947.post@talk.nabble.com>
How about this...
If I compile a file with the stdio.h header in the same directory, a
precompiled header is kicked out: stdio.h.gch
If that .gch file is moved to /usr/include then compilation will proceed
without any errors when the following statement is used:
#include <stdio.h>
According to:
http://gcc.gnu.org/onlinedocs/gcc-3.4.1/gcc/Precompiled-Headers.html
only one precompiled header may be used during any compilation...so this
proves to be a solution for small projects.
More...if the following is entered, a list of syntax errors results:
$ pwd
/usr/include
$ gcc -x none stdio.h
GES
--
View this message in context: http://www.nabble.com/Inconsistent-Compilation-t1158935.html#a3042045
Sent from the gcc - Help forum at Nabble.com.