This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

problem with gcc -E -include foo.h foo.c


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 %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]