This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
problem with gcc -E -include foo.h foo.c
- To: egcs-bugs at cygnus dot com
- Subject: problem with gcc -E -include foo.h foo.c
- From: Richard Ketchersid <ketchers at math dot berkeley dot edu>
- Date: Fri, 6 Mar 1998 19:11:19 -0800 (PST)
Using the latest snapshot of egcs here is what happens:
~> gcc -E -include foo.h foo.c
~> cpp: -include: No such file or directory
I changed cccp.c to say
if (i + 1 == argc)
fatal ("Filename missing after `-include' option");
else
simplify_filename (pend_includes[temp - 1] = argv[temp]);
/\ <-- The change.
Now cpp -include foo.h foo.c does something, but still doesn't work.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Richard Ketchersid %
% UC Berkeley, Mathematics Dept. %
% Group for Logic, and Methodology of Science %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%