[Gdal-dev] Windows build from CVS

Martin Daly Martin.Daly at cadcorp.com
Fri Oct 8 05:38:56 EDT 2004


Frank,

I did a cvs update this morning, and the Windows build was broken.  I
had to change two files as follows, both attached:

frmts\airsar\airsardataset.cpp

Lines 358-361 from:

        M[M13] = byte[4] * fabs(byte[4]) * M[M11] / (127*127);
        M[M14] = byte[5] * fabs(byte[5]) * M[M11] / (127*127);
        M[M23] = byte[6] * fabs(byte[6]) * M[M11] / (127*127);
        M[M24] = byte[7] * fabs(byte[7]) * M[M11] / (127*127);

To:

        M[M13] = byte[4] * fabs((double) byte[4]) * M[M11] / (127*127);
        M[M14] = byte[5] * fabs((double) byte[5]) * M[M11] / (127*127);
        M[M23] = byte[6] * fabs((double) byte[6]) * M[M11] / (127*127);
        M[M24] = byte[7] * fabs((double) byte[7]) * M[M11] / (127*127);

VC++ .NET has multiple fabs-s (float, double and long double),and can't
choose which one without a cast.

frmts\hdf4\hdf-eos\makefile.vc

This did not have CRLF endings, and nmake was choking on it as a result.

Regards,
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: makefile.vc
Type: application/octet-stream
Size: 239 bytes
Desc: makefile.vc
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20041008/5664f223/makefile.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: airsardataset.cpp
Type: application/octet-stream
Size: 23262 bytes
Desc: airsardataset.cpp
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20041008/5664f223/airsardataset.obj


More information about the Gdal-dev mailing list