Re: std::strcpy is not a member

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

 



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@xxxxxxxxxx
Check us out at www.digium.com & www.asterisk.org

[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