help-gplusplus
[Top][All Lists]
Advanced

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

Re: errno bug?


From: E. Robert Tisdale
Subject: Re: errno bug?
Date: Thu, 07 Oct 2004 07:26:44 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922

Ross Smith wrote:

E. Robert Tisdale wrote:

Evidently, it resolves to 'throw()' when compiled with g++ but

extern int errno;

is replaced with

extern int (*__errno_location ());

There's nothing wrong with what's in the header.
As several people have already explained to you,
you are not allowed to write

I didn't write "extern int errno".
It appears in already existing (now broken) code.

        > cd /usr/include/
        > grep -r 'extern int errno' .
        ./gnome-1.0/gtk-xmhtml/XmHTMLI.h:extern int errno;
        ./errno.h:extern int errno;
        ./imap/os_aux.h:extern int errno;
        ./w3c-libwww/wwwsys.h:extern int errno;
        ./zutil.h:    extern int errno;
        ./kpathsea/c-errno.h:extern int errno;
        ./tcl-private/unix/tclUnixPort.h:extern int errno;
        ./mysql/my_sys.h:extern int errno;      /* declare errno */
        ./tk-private/unix/tkUnixPort.h:extern int errno;

for example.


reply via email to

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