Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!aplcen!uakari.primate.wisc.edu!larry!jwp From: jwp@larry.sal.wisc.edu (Jeffrey W Percival) Newsgroups: comp.unix.wizards Subject: Re: Yacc/Lex: multiple uses in the same program? Message-ID: <728@larry.sal.wisc.edu> Date: 19 Sep 89 14:39:13 GMT References: <727@larry.sal.wisc.edu> <8106@goofy.megatest.UUCP> Reply-To: jwp@larry.sal.wisc.edu.UUCP (Jeffrey W Percival) Organization: Space Astronomy Laboratory Lines: 15 In article <8106@goofy.megatest.UUCP> djones@megatest.UUCP (Dave Jones) writes: >From article <727@larry.sal.wisc.edu>, by jwp@larry.sal.wisc.edu (Jeffrey W Percival): >> But when I link my main program, I run into trouble with ld(1) finding >> multiple definitions of many lex variables. >> How can I do what I want? >Several ways. (In order from probably best to probably worst...) Thanks for the info... I'm almost sorry I asked. Some people recommended using Flex and Bison, which are claimed to avoid this pathetic and debilitating flaw in a couple of otherwise *great* programs. -- Jeff Percival (jwp@larry.sal.wisc.edu)