Tomas,<br><br>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...<br><br><br>Best regards,<br><br>Tamas<br><br><br><div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup">
</div><style type="text/css">#avg_ls_inline_popup { position:absolute; z-index:9999; padding: 0px 0px; margin-left: 0px; margin-top: 0px; width: 240px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 13px;}</style><br>
<div class="gmail_quote">2010/7/1 Tomas R <span dir="ltr"><<a href="mailto:monshi@home.se">monshi@home.se</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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<br>
<br>
Gdal compiles fine, no problems, but the C# bindings fail with the following error when using nmake:<br>
<br>
csc /platform:x86 /target:library /out:gdal_csharp.dll /r:ogr_csharp.dl<br>
l gdal\*.cs AssemblyInfo.cs<br>
Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1<br>
Copyright (C) Microsoft Corporation. All rights reserved.<br>
<br>
gdal\Band.cs(17,79): error CS0117: 'OSGeo.GDAL.GdalPINVOKE' does not contain a<br>
definition for 'BandUpcast'<br>
gdal\Dataset.cs(17,82): error CS0117: 'OSGeo.GDAL.GdalPINVOKE' does not contain<br>
a definition for 'DatasetUpcast'<br>
gdal\Driver.cs(17,81): error CS0117: 'OSGeo.GDAL.GdalPINVOKE' does not contain a<br>
definition for 'DriverUpcast'<br>
NMAKE : fatal error U1077: 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.EX<br>
E' : return code '0x1'<br>
Stop.<br>
<br>
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.<br>
<br>
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?<br>
<br>
Yours<br>
Tomas<br>
<br>
<br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br>