[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Flex 2.5.23 beta and C++
From: |
W. L. Estes |
Subject: |
Re: Flex 2.5.23 beta and C++ |
Date: |
Tue, 22 Oct 2002 10:14:32 -0400 |
User-agent: |
Mutt/1.3.28i |
On Tuesday, 22 October 2002,15:05 +0100, Mark Weaver wrote:
> C++ uses namespaces, and this is an inherent part of the language. If you
> want old style global function declarations, you can typically (of course
> this depends on your compiler; I've not seen one for this doesn't work
> however) include the old style header. That is:
>
> #include <cstdio>
>
> will require a 'std::' prefix and
>
> #include <stdio.h>
>
> will not. The difference is 'pure' C++ vs C compiled as C++. Typically the
> latter has functions declared with extern "C" (and it's a good bet that the
> former does namespace std { using ::exit }).
Thanks for the clarification.
--Will
- Flex 2.5.23 beta and C++, Hans Aberg, 2002/10/22
- Re: Flex 2.5.23 beta and C++, W. L. Estes, 2002/10/22
- Re: Flex 2.5.23 beta and C++, Hans Aberg, 2002/10/22
- Re: Flex 2.5.23 beta and C++, Hans Aberg, 2002/10/22
- Re: Flex 2.5.23 beta and C++, W. L. Estes, 2002/10/22
- Re: Flex 2.5.23 beta and C++, Hans Aberg, 2002/10/22
- Re: Flex 2.5.23 beta and C++, W. L. Estes, 2002/10/23
- Re: Flex 2.5.23 beta and C++, Hans Aberg, 2002/10/23
- Re: Flex 2.5.23 beta and C++, W. L. Estes, 2002/10/23
- Re: Flex 2.5.23 beta and C++, Hans-Bernhard Broeker, 2002/10/23
- Re: Flex 2.5.23 beta and C++, Wojciech Fraczak, 2002/10/23
- Re: Flex 2.5.23 beta and C++, Hans Aberg, 2002/10/23
- Re: Flex 2.5.23 beta and C++, Hans Aberg, 2002/10/23