[gdal-dev] C# bindings compile error VSE 2010

Tamas Szekeres szekerest at gmail.com
Thu Jul 1 06:41:57 EDT 2010


Tomas,

You should use SWIG 1.3.39. The bindings haven't been tested with SWIG
2.0.0. Upgrading SWIG always cause much of pain...


Best regards,

Tamas



2010/7/1 Tomas R <monshi at home.se>

>  Back again trying to compile gdal and the C# interface. This time with VSE
> 2010, Gdal 1.7.2 and Swig 2.0.0 on a Vista32 machine
>
> Gdal compiles fine, no problems, but the C# bindings fail with the
> following error when using nmake:
>
>        csc /platform:x86  /target:library /out:gdal_csharp.dll
> /r:ogr_csharp.dl
> l gdal\*.cs AssemblyInfo.cs
> Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1
> Copyright (C) Microsoft Corporation. All rights reserved.
>
> gdal\Band.cs(17,79): error CS0117: 'OSGeo.GDAL.GdalPINVOKE' does not
> contain a
>        definition for 'BandUpcast'
> gdal\Dataset.cs(17,82): error CS0117: 'OSGeo.GDAL.GdalPINVOKE' does not
> contain
>        a definition for 'DatasetUpcast'
> gdal\Driver.cs(17,81): error CS0117: 'OSGeo.GDAL.GdalPINVOKE' does not
> contain a
>        definition for 'DriverUpcast'
> NMAKE : fatal error U1077:
> 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.EX
> E' : return code '0x1'
> Stop.
>
> Since I am, and always will be, a newbie on C++ compilation I have no idea
> what to do to fix it or if I can fix it.
>
> And since I am asking here I throw in another Q - I want to target the C#
> bindings to the .Net2 platform. How/where can I control this via the
> commandline compiler, via the nmake command?
>
> Yours
> Tomas
>
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100701/3d925100/attachment.html


More information about the gdal-dev mailing list