[GRASS-dev] Re: [GRASS GIS] #308: Compiler error while building
python swig
GRASS GIS
trac at osgeo.org
Tue Sep 16 04:41:56 EDT 2008
#308: Compiler error while building python swig
----------------------------------+-----------------------------------------
Reporter: cgsbob | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: SWIG (all bindings) | Version: svn-develbranch6
Resolution: | Keywords: python swig
Platform: Unspecified | Cpu: Unspecified
----------------------------------+-----------------------------------------
Comment (by glynn):
Replying to [comment:18 hamish]:
> test.py gets stuck due to the new definition of G_gisinit():
> if in test.py I replace G_gisinit() with G__gisinit():
> {{{
> -g6lib.G_gisinit('')
> +g6lib.G__gisinit(g6lib.GIS_H_VERSION, '')
> }}}
>
> Then it all works, but that's more to type.
Just re-implement the macro in Python:
{{{
%pythoncode %{
def G_gisinit(pgm):
G__gisinit(GIS_H_VERSION, pgm)
%}
}}}
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/308#comment:21>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list