[GRASS-user] Compile module with different name

Richard Chirgwin rchirgwin at ozemail.com.au
Fri Jul 31 07:09:19 EDT 2009


Martin Landa wrote:
> Hi,
>
> 2009/7/31 Richard Chirgwin <rchirgwin at ozemail.com.au>:
>   
>>> main.c:214: error: too many arguments to function 'Vect_build_partial'
>>> main.c:215: error: too many arguments to function 'Vect_build'
>>> main.c: in function 'main':
>>> main.c.572: error: too many arguments to function 'Vect_build_partial'
>>> main.c.584: error: too many arguments to function 'Vect_snap_lines'
>>> main.c.587: error: too many arguments to function 'Vect_break_lines'
>>> main.c.590: error: too many arguments to function 'Vect_remove_duplicates'
>>> main.c.602: error: too many arguments to function 'Vect_build_partial'
>>> main.c.710: error: too many arguments to function 'Vect_build_partial'
>>>       
>
> the reason is that API has been slightly changed in grass64+ (messages
> are printed in the standard way using G_message()). Just remove the
> second argument from the functions (NULL, stdout/stderr). E.g.
>
> Vect_build(&Map, stderr);
>
> to
>
> Vect_build(&Map);
>
> Martin
>
>   
Martin,

Thanks, I'll let you know how it goes ...

Richard



More information about the grass-user mailing list