[GRASS-user] Compile module with different name

Martin Landa landa.martin at gmail.com
Fri Jul 31 06:56:09 EDT 2009


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 Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa


More information about the grass-user mailing list