Menu

patch for gcc 3

2001-11-12
2001-11-13
  • Pete Ratzlaff

    Pete Ratzlaff - 2001-11-12

    Just a few small things had to be changed. I'll paste the patch below, but don't expect it to show properly in the text area here. The original file is at http://h004033574f71.ne.mediaone.net:8000/CommonC++-1.9.0-gcc3.patch
    if this doesn't work.

    A more serious problem is that my xml2-config is including /usr/include, and that breaks some #include_next directives in the libstdc++-v3 headers that come with gcc 3.0.1.

    Cheers.

    diff -ur CommonC++-1.9.0/src/dir.cpp CommonC++-1.9.0-mine/src/dir.cpp
    --- CommonC++-1.9.0/src/dir.cpp Mon Oct 29 15:09:36 2001
    +++ CommonC++-1.9.0-mine/src/dir.cpp    Mon Nov 12 03:21:07 2001
    @@ -56,7 +56,7 @@
                    throw(this);
    #ifdef COMMON_STD_EXCEPTION
            else if(!dir && getException() == THROW_EXCEPTION)
    -               throw(DirException(string(name) + ": failed"));
    +               throw(DirException(std::string(name) + ": failed"));
    #endif
    }
           
    diff -ur CommonC++-1.9.0/src/exception.h CommonC++-1.9.0-mine/src/exception.h
    --- CommonC++-1.9.0/src/exception.h     Mon Oct 29 13:36:24 2001
    +++ CommonC++-1.9.0-mine/src/exception.h        Mon Nov 12 03:20:18 2001
    @@ -77,6 +77,7 @@
    public:
            Exception(const std::string& what_arg): _what(what_arg) {};
            virtual const char *getString() const {return _what.c_str();};
    +       ~Exception() throw () {};
    };

    /**
    diff -ur CommonC++-1.9.0/src/fifo.cpp CommonC++-1.9.0-mine/src/fifo.cpp
    --- CommonC++-1.9.0/src/fifo.cpp        Mon Oct 29 14:43:32 2001
    +++ CommonC++-1.9.0-mine/src/fifo.cpp   Mon Nov 12 03:23:01 2001
    @@ -117,7 +117,7 @@
                            throw(this);
    #ifdef COMMON_STD_EXCEPTION
                    else if(getException() == THROW_EXCEPTION)
    -                       throw(FIFOException(string(fname) + ": create failed"));
    +                       throw(FIFOException(std::string(fname) + ": create failed"));
    #endif
                    return;
            }
    @@ -129,7 +129,7 @@
                            throw(this);
    #ifdef COMMON_STD_EXCEPTION
                    else if(getException() == THROW_EXCEPTION)
    -                       throw(FIFOException(string(fname) + ": open failed"));
    +                       throw(FIFOException(std::string(fname) + ": open failed"));
    #endif
                    return;
            }

     
    • Frediano Ziglio

      Frediano Ziglio - 2001-11-13

      fixed problem with namespace and exception in CVS

      For xml... I don't know, perhaps and update to xml libraries...

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.