[Gdal-dev] Build csharp swig (from real newbie)
Tamas Szekeres
szekerest at gmail.com
Mon Dec 4 04:52:41 EST 2006
Alan,
I guess you are using a SWIG version older than 1.3.27 which is not supported.
I recommend to use the latest SWIG release (1.3.31).
However if you would like to use 1.3.27 checkout the latest CVS since
a minor modification
had to be applied.
Best Regards,
Tamas
2006/12/4, Alan <alankeown at southernphone.com.au>:
>
>
>
>
> Dear List,
>
> Using today's CVS, I've built the gdal13.dll (thanks to Howard)
>
> And run nmake with the interface option at /swig/csharp/
>
>
>
> When I run nmake –f makefile.vc using the MSVC 2003 nmake I get the
> following error:
>
>
>
> ogr\Geometry.cs(45,1): error CS1519: Invalid token '{' in class, struct, or
>
> interface member declaration
>
>
>
> It turns out there is a stray "{}" pair in the ogr\Geometry.cs file
> surrounding
>
> public int ExportToWkb( byte[] buffer, int byte_order )
>
> and
>
> public int ExportToWkb( byte[] buffer )
>
>
>
> If I edit the ogr\Geometry.cs file I get an error at
>
>
>
> gdal\Band.cs(17,58): error CS1525: Invalid expression term ''
>
> gdal\Band.cs(17,59): error CS1026: ) expected
>
> gdal\Band.cs(19,4): error CS1513: } expected
>
> gdal\Band.cs(40,1): error CS1519: Invalid token '{' in class, struct, or
>
> interface member declaration
>
>
>
> Could someone tell me if I'm doing something wrong?
>
>
>
> Thanks
>
> AlanK
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev
>
>
More information about the Gdal-dev
mailing list