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: David Bateman
Subject: Re: compling from CVS: lex.l errors
Date: Fri, 25 Feb 2005 10:05:20 +0100
User-agent: Mozilla Thunderbird 0.8 (X11/20040923)

John W. Eaton wrote:

On 24-Feb-2005, Andy Adler <address@hidden> wrote:

| 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?

It works for me.  Can you send me the lex.cc and oct-gperf.h files
that you have?

Thanks,

jwe

Andy,

I got pretty much the same errors on a machine that I didn't have gperf installed on when I was building from the CVS... Do you have gperf installed?

Regards
David

--
David Bateman                                address@hidden
Motorola Labs - Paris +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 1 69 35 77 01 (Fax) 91193 Gif-Sur-Yvette FRANCE

The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary



-------------------------------------------------------------
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]