Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!emory!hubcap!ncrcae!ncrlnk!ncrcce!ncrons!johnson From: johnson@ncrons.StPaul.NCR.COM (Wayne D. Johnson) Newsgroups: comp.unix.wizards Subject: Re: Linking two yacc (y.tab.o) files Message-ID: <238@ncrons.StPaul.NCR.COM> Date: 27 Feb 90 18:52:51 GMT References: <25E34681.3787@deimos.cis.ksu.edu> <39@mycroft.stanford.edu> Reply-To: johnson@ncrons.StPaul.NCR.COM (Wayne D. Johnson) Distribution: usa Organization: NCR Comten, St Paul Lines: 20 In article <39@mycroft.stanford.edu> kon@mycroft.Stanford.EDU (Ronnie Kon) writes: #In article <25E34681.3787@deimos.cis.ksu.edu> jxf@phobos.cis.ksu.edu (Jerry Frain) writes: #> 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. # # The kludge is to simply sed with the command # # sed 's/\ parser1.c I have seen an implementation where they #defined the yy as somthing else before the compile. Who needs sed. -- Wayne Johnson | Is a baby's life worth more than the right to NCR Comten, Inc. | make a choice? Babies are people too. Roseville MN 55113 +----------------------------------------------------- (Voice) 612-638-7665 (E-MAIL) W.Johnson@StPaul.NCR.COM