Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!uwm.edu!bionet!ames!elroy.jpl.nasa.gov!cogswell!alan From: alan@cogswell.Jpl.Nasa.Gov (Alan S. Mazer) Newsgroups: comp.unix.wizards Subject: Re: Linking two yacc (y.tab.o) files Message-ID: <1990Feb23.010903.26726@elroy.jpl.nasa.gov> Date: 23 Feb 90 01:09:03 GMT References: <25E34681.3787@deimos.cis.ksu.edu> Sender: news@elroy.jpl.nasa.gov (Usenet) Distribution: usa Organization: Image Analysis Systems Grp, JPL Lines: 15 In article <25E34681.3787@deimos.cis.ksu.edu>, jxf@phobos.cis.ksu.edu (Jerry Frain) writes: | I created a yacc file for each parser, tested them separately, and prepared | to link the objects into a larger program. Unfortunately, that's as far as | I got. Since yacc creates a lot of global variables when it makes the | y.tab.c files, there were many conflict errors when I tried to link the two | files. We have a program which uses two different grammars and the Makefile runs one y.tab.c through sed to change the names of things. I think there's 40-some things to change. Haven't had any problems with this. If you or anyone else want it, you're welcome. -- Alan # "But seriously, what could go wrong?" ..!cit-vax!elroy!alan alan@elroy.jpl.nasa.gov