help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: errno bug?


From: Thomas Maeder
Subject: Re: errno bug?
Date: Wed, 06 Oct 2004 11:04:01 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux)

"E. Robert Tisdale" <E.Robert.Tisdale@jpl.nasa.gov> writes:

>          > cat main.cc
>          #include <stdio.h>
>          #include <errno.h>
>
>          extern int errno;

This is indeed an errno bug, but in your code :-)

There is no requirement that errno be declared as an int variable by the C++
implementation. I'm not even sure if defining errno as an int variable is
conforming. Usually, it's a macro.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]