[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with bison.simple and C++
From: |
Adam Tee |
Subject: |
Re: Problems with bison.simple and C++ |
Date: |
Thu, 17 Jan 2002 09:58:27 +0000 |
On Thursday 17 Jan 2002 9:50 am, you wrote:
> >>>>> "Adam" == Adam Tee <address@hidden> writes:
>
> Adam> Hi, I'm trying to compile a parser using C++ but I get the
> Adam> following error message:
>
> Hi!
>
> First, a preliminary question: does your application need to be
> portable, or should it follow the C++ standard? The problem is that
> the standard clearly says size_t is in std, and your environment is
> wrong on this regard. Now, we know many environment have still not
> caught up with the standard...
>
Yes, it has a windows version which is out of date at the moment (compiled
under CYGWIN), the program is GNU Denemo. I'm using g++ v3.0.3 to compile it.
I have another program which uses bison and that seems to compile
fine so I am a bit stuck on why the Denemo parsers are not compiling.
> If you are using Autoconf, you ought to find a means to define
> conditionally
>
> #if SIZE_T_IS_NOT_IN_STD
> typedef size_t std::size_t;
> #endif
OK, I could try it.
Adam