Francois Gouget fgouget@free.fr writes:
Though it does not appear to be specified in the standard, all compilers I know of first look for y.tab.h in the current directory if included using quotes.
At least gcc doesn't do that. It looks in the directory that the source file came from, which is *not* the current directory for out of tree builds. So the -I. is very much needed.