[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using bison++ with MSVC
From: |
Akim Demaille |
Subject: |
Re: Using bison++ with MSVC |
Date: |
Mon, 06 Feb 2006 11:43:28 +0100 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
>>> "Dempe" == Dempe Dempe <address@hidden> writes:
> Hi,
> I MUST use bison to generate C++ classes and compile it in MSVC.
> I started compiling the basic example of the "Calc++ -- C++ Calculator".
> It works perfectly using gcc, but using MSVC in the declaration
> class position
> {
> public:
> static const unsigned int initial_column =0;
> ┘
> I get the following error:
> "error C2252: 'initial_column' : pure specifier can only be specified
> for functions"
> It means that the compiler "guess" that this is a function, not a
> variable.
Great compiler :)
The problem was addressed in more recent versions of Bison. Try this
one for instance, until 2.2 is out.
<URL:http://www.lrde.epita.fr/~akim/download/bison-2.1a.tar.bz2>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Using bison++ with MSVC,
Akim Demaille <=