[GRASS-dev] iostream lib and r.terraflow/r.viewshed
Glynn Clements
glynn at gclements.plus.com
Thu Aug 14 01:36:59 EDT 2008
Paul Kelly wrote:
> > Unfortunately I cannot reproduce the compile errors, so I cannot be of much
> > help.
>
> I wondered if you might be able to help with advice on the C++ headers.
> >From the compile errors it seems to me that the problem is a lack of a
> definition for the strcpy() function in the ami_stream.h header. I suspect
> that adding
> #include <cstring>
> (thanks to Martin for the hint about the C++ header names) would solve the
> compilation errors, but I'm not sure if anybody with access to a problem
> system has tried it out yet - but I'm thinking of maybe just going ahead
> and making the change as it seems so appropriate.
Do it. If a C++ header uses strcpy(), it *should* be including
<cstring>. What happens thereafter is a separate issue.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list