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

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


Thank you Tamas.
I will try with the latest SWIG release. (I am only using 1.3.25 because it
is the one referred to in the nmake.opt file.)
Cheers
AlanK

-----Original Message-----
From: Tamas Szekeres [mailto:szekerest at gmail.com] 
Sent: Monday, 4 December 2006 8:53 PM
To: Alan
Cc: Gdal-dev at lists.maptools.org
Subject: Re: [Gdal-dev] Build csharp swig (from real newbie)

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