This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Error after installing new version of gcc


Hi Jingid,

Works for me.

Are you sure you are including the C++ headers, and not the C headers, in your C++ source code?

// C++ header for:
// std::sprintf, std::strerror
#include <cstdio> // Not the C header <stdio.h>

// C++ header for:
// std::strlen, std::memchr, std::strcmp, std:memcpy, std::memset
#include <cstring> // Not the C header <string.h>

Sincerely,
--Eljay


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]