std::strcpy is not a member

Kevin P. Fleming kpfleming@digium.com
Tue Feb 23 18:08:00 GMT 2010


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



More information about the Gcc-help mailing list