Re: std::strcpy is not a member

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

 



On Tue, 23 Feb 2010, Vardhan, Sundara (GE Infra, Energy) wrote:

Recently compiled gcc 4.4.3 for AIX using the following configure
options :

--with-as=/usr/bin/as --with-ld=/usr/bin/ld
--enable-languages=c,c++,fortran --prefix=/cots/gnu/gcc443
--enable-threads --enable-version-specific-runtime-libs --disable-nls
--enable-decimal-float=dpd --host=powerpc-ibm-aix5.3.0.0

Successfully installed and compiled my application. I get the following
error on the C++ code compilation :
error: 'strcpy' is not a member of 'std'

The source code does have "using namespace std;"

But the source code does not have:
#include <cstring>
which is what you need for std::strcpy.

The same source code does not have an issue with gcc 4.2.3 on AIX.

Maybe you #include <iostream> and in 4.2 iostream includes cstring in turn but a cleanup in libstdc++ means this is not the case anymore?

--
Marc Glisse

[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