Re: [gdal-dev] question about build static gdal with visual studio

2011-08-31 Thread tang
It seems that gdal always links it's applications to dynamic lib. at last I change the makefile.vc in the app folder with below lines. !IFDEF DLLBUILD LIBS = $(GDAL_ROOT)\gdal_i.lib !ELSE LIBS = $(GDAL_ROOT)\gdal.lib $(GDAL_ROOT)\ogr\ogr.lib $(GDAL_ROOT)\port\cpl.lib $(GDAL_ROOT)\ogr\ogrsf_frmts\o

Re: [gdal-dev] question about build static gdal with visual studio

2011-08-30 Thread Frank Warmerdam
On 11-08-30 06:58 PM, tang wrote: Thanks a lot for your replay! I got the gdal.lib,but while I link the program to this lib,it still needs gdal18.dll. this confused me . I had tried to comment out DLLBUILD=1 , but the commandline programs need gdal18.dll too. even replacing all gda

Re: [gdal-dev] question about build static gdal with visual studio

2011-08-30 Thread tang
Thanks a lot for your replay! I got the gdal.lib,but while I link the program to this lib,it still needs gdal18.dll. this confused me . I had tried to comment out DLLBUILD=1 , but the commandline programs need gdal18.dll too. even replacing all gdal_i.lib with gdal.lib helps nothing.

Re: [gdal-dev] question about build static gdal with visual studio

2011-08-30 Thread Frank Warmerdam
On 11-08-30 01:12 AM, tang qingyuan wrote: HI ! gdal is default build to dynamic lib with visual studio.How can I build it to static lib ? Maybe a stupid question,But I cannot get the answer on mail list. Thanks! Tang Qingyuan, In fact, I think you can get the answer on the mailing list!

[gdal-dev] question about build static gdal with visual studio

2011-08-30 Thread tang qingyuan
HI ! gdal is default build to dynamic lib with visual studio.How can I build it to static lib ? Maybe a stupid question,But I cannot get the answer on mail list. Thanks! ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailm