[GRASS5] G_plot_line()/ g51

Hi,

it seems that G_plot_line() in grass51 doesn't draw anything
(d.rast works). Does anybody know about some recent changes
in grass50 which could cause that?

Radim

On Fri, May 03, 2002 at 02:21:50PM +0200, Radim Blazek wrote:

Hi,

it seems that G_plot_line() in grass51 doesn't draw anything
(d.rast works). Does anybody know about some recent changes
in grass50 which could cause that?

AFAIK, it works fine in 5.0. You need to use G_setup, etc. first,
right?

--
Eric G. Miller <egm2@jps.net>

On Friday 03 May 2002 05:17 pm, Eric G. Miller wrote:

On Fri, May 03, 2002 at 02:21:50PM +0200, Radim Blazek wrote:
> Hi,
>
> it seems that G_plot_line() in grass51 doesn't draw anything
> (d.rast works). Does anybody know about some recent changes
> in grass50 which could cause that?

AFAIK, it works fine in 5.0. You need to use G_setup, etc. first,
right?

Sorry, that was my stupid mistake, I have used atof() in vectlib,
and forgot to add #include <stdlib.h>. Result was as described above.
How can I force gcc, to complain about missing header file?

Radim

Radim Blazek wrote:

> > it seems that G_plot_line() in grass51 doesn't draw anything
> > (d.rast works). Does anybody know about some recent changes
> > in grass50 which could cause that?
>
> AFAIK, it works fine in 5.0. You need to use G_setup, etc. first,
> right?

Sorry, that was my stupid mistake, I have used atof() in vectlib,
and forgot to add #include <stdlib.h>. Result was as described above.
How can I force gcc, to complain about missing header file?

`-Wimplicit-function-declaration'
`-Werror-implicit-function-declaration'
     Give a warning (or error) whenever a function is used before being
     declared.

--
Glynn Clements <glynn.clements@virgin.net>