[Gdal-dev] Building GDAL by MinGW

Hisaji Ono hi_ono2001 at ybb.ne.jp
Mon Aug 25 13:09:39 EDT 2003


Thank you very much, Mr. Warmerdam.

> >
./configure --prefix=$MINGW --host=i686-pc-mingw32  --with-libz=internal --w
> >
ith-png=internal --with-libtiff=internal  --with-geotiff=internal --without-
> > jpeg --without-python --without-pg

>
> Assuming line 174 reads:
>     pSymbol = GetProcAddress( (HINSTANCE) pLibrary, pszSymbolName );
>
> Try changing it to:
>     pSymbol = (void*) GetProcAddress( (HINSTANCE) pLibrary,
pszSymbolName );
>
> If this fixes the issue let me know and I will correct the master.  The
> code in this win32 implementation was written for VC++ and this may be the
> first time it has been used with another compiler.
>

I could build this code. However I've still got following errors. Below
header files do exist.

gcc -I/home/Administrator/gdal-cvs-030825/port -I/home/Administrator/gdal-cv
s-03
0825/gcore -I/home/Administrator/gdal-cvs-030825/ogr -I/home/Administrator/g
dal-
cvs-030825/frmts -I/home/Administrator/gdal-cvs-030825/alg -c -Wall  -O2
gdal
info.c -o gdalinfo.o
gdalinfo.c:116:18: gdal.h: No such file or directory
gdalinfo.c:117:25: ogr_srs_api.h: No such file or directory
gdalinfo.c:118:24: cpl_string.h: No such file or directory
gdalinfo.c:120: parse error before string constant
gdalinfo.c:120: warning: type defaults to `int' in declaration of
`CPL_CVSID'
gdalinfo.c:120: warning: data definition has no type or storage class
gdalinfo.c:123: parse error before "hDataset"
-----------------------------------------------

Regards.




More information about the Gdal-dev mailing list