From bug-octave-request at bevo dot che dot wisc dot edu Wed Oct 20 17:27:28 1999 Subject: cvs snapshoot error in lex.cc From: "John W. Eaton" To: Joao Cardoso Cc: bug-octave Date: Wed, 20 Oct 1999 17:26:13 -0500 (CDT) On 20-Oct-1999, Joao Cardoso wrote: | After configuring the latest cvs snapshot with the following command on | a sco-3.2v.5.0.4 with egcs-1.1.2, | | CFLAGS=-O2 CXXFLAGS=-O2 FFLAGS=-O2 ./autogen.sh | -host=i686-pc-sco3.2v5.0.4 --enable-shared --enable-dl --disable-static | | I receive the following error: | | lex.l: In function `int is_keyword(const class string &)': | lex.l:952: warning: ANSI C++ forbids declaration `octave_kw' with no | type | lex.l:952: uninitialized const `int const octave_kw' | lex.l:952: parse error before `*' | lex.l:954: `kw' undeclared (first use this function) | | Is this related with the file "FLEX.patch"? After regenerating lex.cc | with flex-2.5.4, I still receive the same error. This is not a problem with flex. It is a problem with gperf. Your oct-gperf.h file needs to be created with the -L ANSI-C option for gperf. The rules in src/Makefile should do this correctly. Also, a correct version of oct-gperf.h should be included in the distribution. Can you please report problems with the bleeding-edge releases to the octave-maintainers list? Thanks, jwe --------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. To ensure that development continues, see www.che.wisc.edu/octave/giftform.html Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html ---------------------------------------------------------------------