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 <[email protected]>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to