This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On Mon, Dec 23, 2002 at 01:00:11PM -0500, Jack Howarth wrote: > Craig, > Thanks. That improved things a bit. Now I get the following > errors... > > throw (std::bad_alloc)' throws different exceptions > memalloc.h:22: than previous declaration `void* operator new(unsigned int)' > /usr/include/c++/3.2.1/new:80: declaration of `void* operator new [](unsigned I suggest that you purchase a book which discusses Standard C++ in detail, such as Bjarne Stroustrup's C++ Programming Language, 3rd ed. g++ 3.x conforms quite closely to Standard C++, so understanding this standard will help you fix these types of problems. See the attached patch. -- Craig Rodrigues http://www.gis.net/~craigr rodrigc@attbi.com
Attachment:
sparky-patch.txt
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |