public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Marc Glisse <marc.glisse@normalesup.org>
To: "Vardhan, Sundara (GE Infra, Energy)" <sundara.vardhan@ge.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: std::strcpy is not a member
Date: Tue, 23 Feb 2010 16:07:00 -0000	[thread overview]
Message-ID: <alpine.DEB.2.00.1002231647170.18102@stedding.saclay.inria.fr> (raw)
In-Reply-To: <8E460D1B58F94945A20AA70D4D41430D0BE3D0F0@ALPMLVEM08.e2k.ad.ge.com>

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

  parent reply	other threads:[~2010-02-23 16:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-23 15:47 Vardhan, Sundara (GE Infra, Energy)
2010-02-23 15:49 ` Andrew Haley
2010-02-23 16:26   ` Vardhan, Sundara (GE Infra, Energy)
2010-02-23 18:08     ` Kevin P. Fleming
2010-02-23 23:54       ` Marc Glisse
2010-02-23 16:03 ` John (Eljay) Love-Jensen
2010-02-23 16:07 ` Marc Glisse [this message]
2010-02-23 16:07   ` Vardhan, Sundara (GE Infra, Energy)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.00.1002231647170.18102@stedding.saclay.inria.fr \
    --to=marc.glisse@normalesup.org \
    --cc=gcc-help@gcc.gnu.org \
    --cc=sundara.vardhan@ge.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).