This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: std::strcpy is not a member
Vardhan, Sundara (GE Infra, Energy) wrote:
> I apologize for that. Assumed that I would have not built the gcc with
> the correct set of configure parameters. Please find below a very simple
> test source :
>
> /*
> ** Includes
> */
> /*START INCLUDE*/
> #include <stdio.h>
> #include <string.h>
This is not C++, it's C. If you want the C-style string functions
available in the C++ 'std' namespace, you must do:
#include <cstring>
--
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kfleming@digium.com
Check us out at www.digium.com & www.asterisk.org