[Gdal-dev] Build csharp swig (from real newbie)

Alan alankeown at southernphone.com.au
Mon Dec 4 02:12:53 EST 2006


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20061204/07e2831b/attachment.html


More information about the Gdal-dev mailing list