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; }
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.
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;
}
fixed problem with namespace and exception in CVS
For xml... I don't know, perhaps and update to xml libraries...