[GRASS-dev] GRASS 7 swig compile warnings and errors

Glynn Clements glynn at gclements.plus.com
Tue Jan 20 05:53:44 EST 2009


Markus Neteler wrote:

> > So assigning an expression of type va_list to a variable of type
> > va_list results in an "incompatible types in assignment" error from
> > the compiler?
> >
> > I can only suggest taking this up with the gcc maintainers; I have no
> > clue.
> 
> I found this:
> http://www.swig.org/Doc1.3/SWIGDocumentation.html#Varargs_nn8
> -> 13.7 Wrapping of va_list
> 
> I don't know if that's related. Also this from a ruby list:
> http://rubyforge.org/pipermail/ruby-vpi-discuss/2007-August/000008.html
> ... mentioning a "type mismatch" error.

Okay. Given that you can't actually use that function from Python, the
simplest solution is probably to just hide the declaration from SWIG:

	+#ifndef SWIG
	 int G_vasprintf(char **, const char *, va_list);
	+#endif

> BTW, I am using gcc version 4.3.2 on 64bit. Is it only me having
> this problem to compile swig/python/ ?

There's no problem with 3.4.6 on 32-bit.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list