RE: Error after installing new version of gcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux