Opened 15 years ago

Closed 15 years ago

#2928 closed defect (fixed)

Problems to compile swigged GDAL for C# on 64 bit machine

Reported by: lucaucsb Owned by: tamas
Priority: normal Milestone: 1.6.1
Component: CSharpBindings Version: unspecified
Severity: normal Keywords: SWIG GDAL C#
Cc:

Description

Using SWIG Version 1.3.39 creates problem in compiling swigged GDAL for C# on 64 bit machine (maybe the same thing happens on 32 bit, but we haven't tested that). Switching to the previous version of SWIG (Version 1.3.38) fixes the problem.

Change History (3)

comment:1 by hobu, 15 years ago

Component: SWIG (all bindings)CSharpBindings
Owner: changed from hobu to tamas

You need to describe the error or this bug will be closed.

comment:2 by tamas, 15 years ago

If this ticket refers to the problem below, I got it. The SWIG guys are very happy to introduce backward incompatible changes in the subsequent releases ;-)

nmake /nologo /f makefile.vc

cl /nologo /MD /EHsc /Ox /W3 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_N

O_DEPRECATE /DNDEBUG -IE:\Projects\Temp\release-1400-dev\gdal-1-6\port -IE:\Proj ects\Temp\release-1400-dev\gdal-1-6\ogr -IE:\Projects\Temp\release-1400-dev\gdal -1-6\gcore -IE:\Projects\Temp\release-1400-dev\gdal-1-6\alg -IE:\Projects\Temp\ release-1400-dev\gdal-1-6\ogr\ogrsf_frmts -DOGR_ENABLED /c gdal_wrap.cpp gdal_wrap.cpp gdal_wrap.cpp(3548) : error C2451: conditional expression of type 'void' is ille gal

Expressions of type void cannot be converted to other types

gdal_wrap.cpp(3548) : error C2541: 'delete' : cannot delete objects that are not

pointers

gdal_wrap.cpp(3550) : error C2120: 'void' illegal with all types gdal_wrap.cpp(3550) : error C2106: '=' : left operand must be l-value gdal_wrap.cpp(3551) : error C2440: 'type cast' : cannot convert from 'void' to ' char *'

Expressions of type void cannot be converted to other types

gdal_wrap.cpp(3553) : error C2120: 'void' illegal with all types gdal_wrap.cpp(3553) : error C2106: '=' : left operand must be l-value gdal_wrap.cpp(3620) : error C2451: conditional expression of type 'void' is ille gal

Expressions of type void cannot be converted to other types

gdal_wrap.cpp(3620) : error C2541: 'delete' : cannot delete objects that are not

pointers

gdal_wrap.cpp(3622) : error C2120: 'void' illegal with all types gdal_wrap.cpp(3622) : error C2106: '=' : left operand must be l-value gdal_wrap.cpp(3623) : error C2440: 'type cast' : cannot convert from 'void' to ' char *'

Expressions of type void cannot be converted to other types

gdal_wrap.cpp(3625) : error C2120: 'void' illegal with all types gdal_wrap.cpp(3625) : error C2106: '=' : left operand must be l-value NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 8\VC \BIN\cl.EXE"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 8\VC \BIN\nmake.EXE"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 8\VC \BIN\nmake.EXE"' : return code '0x2' Stop.

comment:3 by tamas, 15 years ago

Milestone: 1.6.1
Resolution: fixed
Status: newclosed

Fixed the problem in the trunk (r16773) and barach-1.6 (r16772)

Note: See TracTickets for help on using tickets.