https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65920
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID Severity|critical |normal --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Sounds like you don't know that string is now in the std namespace. Either add "using std::string;" after the include of string.h or change all references to string to std::string. You need to figure out where LogFile is defined and compile that c++ file too. This is not a GCC bug but rather an issue with your code. If you want to ask C++ questions it is best to ask on a different place than here. Also how to use gcc it would be best to ask on gcc-h...@gcc.gnu.org rather than in a bug report.