R: [Gdal-dev] Re: Compile Error

Paul Kelly paul-grass at stjohnspoint.co.uk
Wed Oct 15 11:06:33 EDT 2003


On Wed, 15 Oct 2003, Amici Alessandro wrote:

>
> Paul,
>
> your problem should be fixed in cvs now. would you double check and
> report how it goes?

Yes, working fine now. Below are a few other simple changes I had to make
to get it to compile. The new shared library is called libgdal.so.2.9.

Paul

Index: alg/contour.cpp
===================================================================
RCS file: /cvsroot/osrs/gdal/alg/contour.cpp,v
retrieving revision 1.1
diff -u -r1.1 contour.cpp
--- alg/contour.cpp	10 Oct 2003 19:44:46 -0000	1.1
+++ alg/contour.cpp	15 Oct 2003 15:02:23 -0000
@@ -442,7 +442,7 @@
 /* -------------------------------------------------------------------- */
     int iPixel;

-    for( int iPixel = 0; iPixel < nWidth; iPixel++ )
+    for( iPixel = 0; iPixel < nWidth; iPixel++ )
     {
         double dfLevel = (padfThisLine[iPixel] - dfContourOffset)
             / dfContourInterval;
Index: frmts/bsb/bsb_read.c
===================================================================
RCS file: /cvsroot/osrs/gdal/frmts/bsb/bsb_read.c,v
retrieving revision 1.12
diff -u -r1.12 bsb_read.c
--- frmts/bsb/bsb_read.c	8 Jul 2003 20:28:09 -0000	1.12
+++ frmts/bsb/bsb_read.c	15 Oct 2003 15:02:23 -0000
@@ -538,8 +538,8 @@
     do {
         byNext = BSBGetc( fp, psInfo->bNO1 );

-        // Special hack to skip over extra zeros in some files, such
-        // as optech/sample1.kap.
+        /* Special hack to skip over extra zeros in some files, such
+           as optech/sample1.kap. */
         while( nScanline != 0 && nLineMarker == 0 && byNext == 0 )
             byNext = BSBGetc( fp, psInfo->bNO1 );

Index: frmts/dted/dted_api.c
===================================================================
RCS file: /cvsroot/osrs/gdal/frmts/dted/dted_api.c,v
retrieving revision 1.13
diff -u -r1.13 dted_api.c
--- frmts/dted/dted_api.c	4 Aug 2003 18:23:07 -0000	1.13
+++ frmts/dted/dted_api.c	15 Oct 2003 15:02:24 -0000
@@ -317,9 +317,9 @@
         {
             panData[i] *= -1;

-            // It seems that some files are improperly generated in twos
-            // complement form for negatives.  For these, redo the job
-            // in twos complement.  eg. w_069_s50.dt0
+            /* It seems that some files are improperly generated in twos
+               complement form for negatives.  For these, redo the job
+               in twos complement.  eg. w_069_s50.dt0 */
             if( panData[i] < -16000 )
             {
                 static int bWarned = FALSE;



More information about the Gdal-dev mailing list