Hi Marc Thanks that was the missing piece. Wonder how the same program compiles fine in gcc 4.2.3. Perhaps some change that is now required to explicitly put the header file. Thanks a lot With Regards Vardhan -----Original Message----- From: Marc Glisse [mailto:marc.glisse@xxxxxxxxxxxxxx] Sent: Tuesday, February 23, 2010 11:03 AM To: Vardhan, Sundara (GE Infra, Energy) Cc: gcc-help@xxxxxxxxxxx Subject: Re: std::strcpy is not a member 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