help-gplusplus
[Top][All Lists]
Advanced

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

errno bug?


From: E. Robert Tisdale
Subject: errno bug?
Date: Tue, 05 Oct 2004 23:56:42 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922

        > cat main.cc
        #include <stdio.h>
        #include <errno.h>

        extern int errno;

        int main(int argc, char* argv[]) {
          return 0;
          }

        > g++ -Wall -ansi -pedantic -o main main.cc
        main.cc:4: error: declaration of `int* __errno_location()' \
        throws different exceptions
        /usr/include/bits/errno.h:38: error: \
        than previous declaration `int* __errno_location() throw ()'
        > g++ --version
        g++ (GCC) 3.4.1
        > cat /etc/fedora-release
        Fedora Core release 2 (Tettnang)


reply via email to

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