Why is string class not accepted in latest gcc-c++ compiler. Actually I was using Redhat linux 7.1 and had coded using standard string objects. I recently installed Redhat Linux 8.0, when I compiled the same code it gave list of errors which was all related to using string objects. It says 'string undeclared'. I have included <string> header in the program.