std::strcpy is not a member

John (Eljay) Love-Jensen
Tue Feb 23 16:03:00 GMT 2010

Hi Vardhan,

> 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;"
> The same source code does not have an issue with gcc 4.2.3 on AIX.  Am I
> missing something when building the new compiler version?
> I would very much appreciate if you can give me pointers or solution for
> this issue.

Worked on my machine.

Do you have a small exemplary toy program that exhibits the problem?  To use
as a test case.


More information about the Gcc-help mailing list