i think there is a real bug here.  -N is not really relevant.

cc/lex.c:51 includes the current directory to be first in the include
search path.  i think the loop at lex.c:237 should start with index 1,
not zero, so as not to confuse pcc, i.e.

                        for(c = 0; c < ninclude; c++) {
                                sprint(opt, "-I%s", include[c]);
                                av[i++] = strdup(opt);
                        }

should become

                        for(c = 1; c < ninclude; c++) {
                                sprint(opt, "-I%s", include[c]);
                                av[i++] = strdup(opt);
                        }

doing includes like you are is not quite the plan 9 style, but the point
of pcc is to accomidate.

- erik

Reply via email to