[Gdal-dev] RE: Windows build from CVS

Martin Daly Martin.Daly at cadcorp.com
Fri Oct 8 05:58:11 EDT 2004


And another one: nmake.opt

On further inspection, it looks like there were LFCRLF triplets for each
line.

Regards,
Martin

> -----Original Message-----
> From: Martin Daly 
> Sent: 08 October 2004 10:39
> To: 'gdal-dev at remotesensing.org'
> Subject: Windows build from CVS
> 
> 
> 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 
> VC++ 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: nmake.opt
Type: application/octet-stream
Size: 6814 bytes
Desc: nmake.opt
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20041008/be17609f/nmake.obj


More information about the Gdal-dev mailing list