I am writing a pretty simple application in C++ using g++ under Linux and I am trying to throw some raw strings as exceptions (yes, I know, its not a good practise).
Try adding const to the types you're catching, const char* (possibly const char* const).
const
const char*
const char* const