I compile the source exc.C: --- begin source --- #include <iostream> #include <string> using namespace std; void fun();
int main() { try { throw string("Hi there!"); } catch (string s) { cout << "Catched exception \"" << s << "\"\n"; } } --- end source --- With the command: /usr/local/gcc-4.3.0/bin/g++ -ansi -Wall -o exc exc.C And I get an output: terminate called after throwing an instance of 'std::string' terminate called recursively Abort trap: 6 Exception is never caught. What is wrong? _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus