[Gdal-dev] Compiling C# bindings for 1.3.0b1

Mike Boos mboos at augsignals.com
Mon Aug 15 10:55:16 EDT 2005


Hello

This is my first time trying to compile GDAL. I am using version 1.3.0 
beta 1 on Windows, as I need to be able to use it with C#. I compiled 
the main portion without a hitch. When I go into the swig directory and 
invoke 'nmake /f makefile.vc csharp', I get the following errors:

osr_wrap.cpp(2660) : error C2065: 'ANY' : undeclared identifier
osr_wrap.cpp(2660) : error C2057: expected constant expression
osr_wrap.cpp(2660) : error C2466: cannot allocate an array of constant 
size 0
osr_wrap.cpp(2660) : error C2133: 'argout4' : unknown size
osr_wrap.cpp(2721) : error C2057: expected constant expression
osr_wrap.cpp(2721) : error C2466: cannot allocate an array of constant 
size 0
osr_wrap.cpp(2721) : error C2133: 'argout4' : unknown size
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~4\VC98\BIN\NMAKE.EXE' : 
return code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~4\VC98\BIN\NMAKE.EXE' : 
return code '0x2'
Stop.

The errors appear to be occuring in a file that is generated by SWIG 
(I'm using version 1.3.25). Would anyone be able to help me in figuring 
out what I need to do to get this to compile?

Thanks
Mike Boos



More information about the Gdal-dev mailing list