This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Possible bug in libstdc++ v3
On Thu, Aug 02, 2001 at 04:19:06AM -0400, Stephen M.Webb wrote:
> The name 'errno' is required to be a preprocessor macro by the C++ standard, and
> it looks like one of the headers you are including defines that macro.
>
> Other implementations may accept your code because the standard does not define
> which standard header files may include other standard header files. Both
> implementations may be standard-conforming.
>
> You're better off treating any of the standard-mandated preprocessor symbols as
> reserved words, but if you're in a bind you can always #undef the name after all
> your #includes.
Ohh. You are right. I'm glad to see that my suspicion isn't a reality.
Thank you. It was a trivial error.
Excuse me. I spent too much time at console, that's why I am tired and
made this error. Possibly, I should take a rest.
Good-bye!
--
WBR & WBW, Vitaly.