I am trying to use dmalloc with g++ 4.7.
The error message i am getting are:
/usr/include/dmalloc.h:457:32: error: declaration of 'char* strdup(const char*)' has a different exception specifier
/usr/include/string.h:130:14: error: from previous declaration 'char* strdup(const char*) throw ()'
- Why do C functions throw exceptions?
- Can i somehow tell the compiler to ignore the throw() specifier at compile time?
...or do i have to somehow patch dmalloc?