From lalo@hackandroll.org Mon May 08 17:39:28 2000 Return-Path: Received: (qmail 6210 invoked from network); 9 May 2000 00:39:27 -0000 Received: from unknown (10.1.10.142) by m3.onelist.org with QMQP; 9 May 2000 00:39:27 -0000 Received: from unknown (HELO terra.gf.com.br) (200.221.32.200) by mta3 with SMTP; 9 May 2000 00:39:26 -0000 Received: from lalo by terra.gf.com.br with local (Exim 2.05 #1 (Debian)) id 12oy3X-0000VQ-00; Mon, 8 May 2000 21:39:23 -0300 Date: Mon, 8 May 2000 21:39:23 -0300 To: lojban@egroups.com Subject: Re: [lojban] Parser does not parse, heh Message-ID: <20000508213922.G715@hackandroll.org> Mail-Followup-To: Lalo Martins , lojban@egroups.com References: <20000508211555.E715@hackandroll.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Bn2rw/3z4jIqBvZU" Content-Disposition: inline User-Agent: Mutt/1.1.9i In-Reply-To: <20000508211555.E715@hackandroll.org>; from lalo@hackandroll.org on Mon, May 08, 2000 at 09:15:56PM -0300 X-URL: http://www.webcom.com/lalo From: Lalo Martins --Bn2rw/3z4jIqBvZU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sorry to followup to myself on such a short notice, but I just compiled it, so here is the "fix": On Mon, May 08, 2000 at 09:15:56PM -0300, Lalo Martins wrote: > lalo:~/falcon/src/lojban/parser> gcc -o parser.i386 *.c > print.c:9: initializer element is not constant > > The line in question is: > > static FILE *stream = stdout; Replacing it by: /*static FILE *stream = stdout;*/ #define stream stdout did the trick. It's kind of temporary, however (changing the output stream would require a recompile). The correct fix is to make "stream" into a variable and have an initialization function that sets it to stdout. > I'm also contributing a Makefile Oops, I missed a line. []s, |alo +---- -- Hack and Roll ( http://www.hackandroll.org ) News for, uh, whatever it is that we are. http://www.webcom.com/lalo mailto:lalo@hackandroll.org pgp key in the personal page Brazil of Darkness (RPG) --- http://zope.gf.com.br/BroDar --Bn2rw/3z4jIqBvZU Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=Makefile OBJS = absorb.o compound.o fabsorb.o filter.o getword.o glue.o grammar.o \ lerfu.o lex.o lexrulea.o lexruleb.o lexrulec.o lexruled.o lexrulee.o \ lexrulef.o lexruleg.o lexruleh.o lexrulei.o lexrulej.o lexrulek.o \ lexrulel.o lexrulem.o lexrulen.o lexruleo.o lexrulep.o lexruleq.o \ lexruler.o lexrules.o lexruleu.o lexrulev.o lexrulew.o lexruley.o \ mkcmavo.o node.o print.o queue.o rulename.o selmao.o termin.o token.o \ version.o parser: $(OBJS) cc -o parser $(OBJS) --Bn2rw/3z4jIqBvZU--