help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: compling from CVS: lex.l errors


From: Richard Hindmarsh
Subject: re: compling from CVS: lex.l errors
Date: Mon, 14 Mar 2005 09:01:12 +0000
User-agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.7.1) Gecko/20040707

I ran into the same problem as below - I didn't entirely follow the ensuing conversation, but I fixed it by

(i) updating my Cygwin "gperf" to 3.0.1. This cannot be done from Cygwin it seems (latest version is 2.7.2), so I had to download and make source. I deduce from looking at configure that versions of gperf prior to 3.0.1 are deprecated, but this either didn't appear or got lost in the "configure" output. (ii) I had an empty oct-gperf.h left over from previous attempted makes, which I had to explicitly delete.

Richard

From help-request at octave dot org Thu Feb 24 15:39:36 2005
Subject: compling from CVS: lex.l errors
From: Andy Adler <adler at site dot uottawa dot ca>
To: help-octave at bevo dot che dot wisc dot edu
Date: Thu, 24 Feb 2005 16:44:57 -0500 (EST)

I'm trying to compile a clean checkout of the sparse-merge branch.
I'm getting the following error:

   $ ./autogen.sh
   $ ./configure --enable-shared --enable-dl --disable-static
   $ make
    ...
   g++ -c  -fPIC -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -I../glob 
-I../glob -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -g -O2 lex.cc -o pic/lex.o
   lex.l: In function `int is_keyword_token(const std::string&)':
   lex.l:1004: error: expected primary-expression before "const"
   lex.l:1004: error: expected `;' before "const"
   lex.l:1006: error: `kw' undeclared (first use this function)
   lex.l:1006: error: (Each undeclared identifier is reported only once for 
each function it appears in.)
    ... and lots more errors

I'm using the latest versions of g++ (3.3.5 and 3.4.4) and flex 2.5.31.
This fails under Debian and cygwin. David Bateman suggested gperf may
be an issue, but I seem to have the latest version.

Could anyone help?
--




-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]