This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Why strcpy and not strtod?
Paolo Carlini wrote:
>
> Hi,
>
> > What I do not understand is why strtod is accepted (after having included
> > <cstdlib>).
>
> Most probably this has to do with the fact that strcpy is a builtin whereas strtod
> is not.
>
> Recent patches by Mark Mitchell:
>
> http://gcc.gnu.org/ml/gcc-patches/2001-05/msg01765.html
> http://gcc.gnu.org/ml/gcc-patches/2001-05/msg01766.html
> http://gcc.gnu.org/ml/gcc-patches/2001-05/msg01767.html
>
> involved this part of the compiler.
>
> It seems that something is still not completely sorted out, however:
>
> http://gcc.gnu.org/ml/libstdc++/2001-05/msg00363.html
>
> Hope this helps,
> Paolo Carlini.
I've found a similar problem with today's gcc 3.0 sources. When I use
it
to compile a source file that uses strcmp() from <string.h> the
preprocessed
(*.ii) file has the definition from <string.h> but the compiler tells
me:
`strcmp' undeclared (first use this function)
Are these problems related?
Robert
--
Robert Boehne Software Engineer
Ricardo Software Chicago Technical Center
TEL: (630)789-0003 x. 238
FAX: (630)789-0127
email: rboehne@ricardo-us.com