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

Alan alankeown at southernphone.com.au
Mon Dec 4 16:14:08 EST 2006


Howard & Tamas,
I changed the line 

    link /dll /debug $(OGR_INCLUDE) $(BASE_INCLUDE) ogr_wrap.obj \
		$(EXTERNAL_LIBS) ..\..\gdal.lib\
		 /out:gdal_ogr_wrap.dll $(LINKER_FLAGS)
To

    link /dll /debug $(OGR_INCLUDE) $(BASE_INCLUDE) ogr_wrap.obj \
		$(EXTERNAL_LIBS) ..\..\gdal_i.lib\
		 /out:gdal_ogr_wrap.dll $(LINKER_FLAGS)

In swig/csharp/makefile.vc and nmake ran without error.

My thanks to you both.

Cheers
AlanK





-----Original Message-----
From: Howard Butler [mailto:hobu at iastate.edu] 
Sent: Tuesday, 5 December 2006 7:10 AM
To: Alan; 'Tamas Szekeres'
Cc: Gdal-dev at lists.maptools.org
Subject: RE: [Gdal-dev] Build csharp swig (from real newbie)

At 01:02 PM 12/4/2006, Alan wrote:
>Things are getting better...
>
>gdal_ogr_csharp.dll
>gdal_gdal_csharp.dll
>gdal_gdalconst_csharp.dll
>gdal_osr_csharp.dll
>
>all build okay.
>
>link /dll /debug   ogr_wrap.obj      odbc32.lib odbccp32.lib user32.lib
>..\..\gdal.lib /out:gdal_ogr_wrap.dll

I think this needs to link with the gdal_i.lib (and the gdal_i.lib 
must be build by building GDAL too).  It looks like 
swig/csharp/makefile.vc may have this specified incorrectly.


Howard 




More information about the Gdal-dev mailing list