Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!sunybcs!kitty!larry From: larry@kitty.UUCP Newsgroups: comp.sources.bugs Subject: Re: watcher (v11i082) missing y.tab.h Message-ID: <2189@kitty.UUCP> Date: Sun, 1-Nov-87 23:41:24 EST Article-I.D.: kitty.2189 Posted: Sun Nov 1 23:41:24 1987 Date-Received: Tue, 3-Nov-87 03:18:44 EST References: <18476@teknowledge-vaxc.ARPA> Organization: Recognition Research Corp., Clarence, NY Lines: 24 Summary: No problem; just invoke yacc... In article <18476@teknowledge-vaxc.ARPA>, mkhaw@teknowledge-vaxc.ARPA (Mike Khaw) writes: > The watcher program has a defs.h file that #include's "y.tab.h", but > there is no y.tab.h in the distribution, and the MANIFEST file doesn't > mention it either. Make terminates (very early) with an error because > y.tab.h is missing. Hang your head in shame - but don't feel bad for too long, since we were all in your shoes, once-upon-a-time. :-) `y.tab.h' is the output of yacc invoked with the -d option to produce a define file for token names; a `y.tab.h' file would almost never be distributed with source code, as it is intended to be created by yacc at the time of compilation. You will also discover that `y.tab.c' is also missing; this file is the C-language output file of yacc, and is created when yacc is executed. If you examine the makefile, you will see that all that is needed to produce y.tab.c and y.tab.h is to execute the command `make y.tab.c'; this automatically invokes yacc. Many people write a makefile to explicilty invoke yacc upon first time execution; this author did not, for whatever reason - so it requires a separate invocation of make. <> Larry Lippman @ Recognition Research Corp., Clarence, New York <> UUCP: {allegra|ames|boulder|decvax|rutgers|watmath}!sunybcs!kitty!larry <> VOICE: 716/688-1231 {hplabs|ihnp4|mtune|seismo|utzoo}!/ <> FAX: 716/741-9635 {G1,G2,G3 modes} "Have you hugged your cat today?"