Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!deimos!phobos.cis.ksu.edu!jxf From: jxf@phobos.cis.ksu.edu (Jerry Frain) Newsgroups: comp.unix.wizards Subject: Linking two yacc (y.tab.o) files Message-ID: <25E34681.3787@deimos.cis.ksu.edu> Date: 22 Feb 90 01:55:12 GMT Sender: news@deimos.cis.ksu.edu (USENET News Admin) Reply-To: jxf@phobos.cis.ksu.edu (Jerry Frain) Distribution: usa Organization: Kansas State University, Dept of Computing & Information Sciences Lines: 23 I recently wrote a program which requires two parsers. Depending upon the type of input received, the program will parse according to one of two grammars. 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. I seem to recall a thread in this newsgroup about this problem quite some time ago, but I did not pay any attention to the solution at the time. Anybody got any ideas as to how I can solve this dilemma? Thanks in advance. I'd be glad to post a summary, if there is much interest. -- Jerry Frain -- Professional Student Kansas State University Internet: jxf@phobos.cis.ksu.edu Dept of Computing & Information Sciences BITNET: MUSTANG@KSUVM.BITNET Manhattan, Kansas UUCP: ...!{rutgers|textbell}!ksuvax1!phobos.cis.ksu.edu!jxf