[Gdal-dev] Any possibility of static compile?

Curt, WE7U archer at eskimo.com
Tue Dec 5 16:09:12 EST 2006


On Mon, 4 Dec 2006, Frank Warmerdam wrote:

> I tried building ogrinfo.cpp similarly and it worked fine.
>
> Note that:
>   o My build was --without-libtool
>   o I built against the libgdal.a in the build directory since I don't
>     normally install the static library.

I believe it was an error on my end.  I had this in my script:

  CC=lsbcc ./configure \

but should have had:

  CC=lsbcc CXX=lsbc++ ./configure \

g++ was getting called during the compile and it shouldn't have.
Anyway, I'm now at a point where the generic compile is failing.  My
C is strong but I've had no training in C++ so this is beyond me:

  ilwisdataset.cpp: In member function 'void ValueRange::init(double)':
  ilwisdataset.cpp:1826: error: expected type-specifier before 'exception'
  ilwisdataset.cpp:1826: error: expected `)' before '*' token
  ilwisdataset.cpp:1826: error: expected `{' before '*' token
  ilwisdataset.cpp:1826: error: expected primary-expression before ')' token
  ilwisdataset.cpp:1826: error: expected `;' before ')' token
  make[2]: *** [../o/ilwisdataset.o] Error 1
  make[2]: Leaving directory `/home/src/lsb/gdal-1.3.2b2/frmts/ilwis'

Hopefully it's just a C++ syntax error?  This is gdal-1.3.2b2 I'm
working with, and the bit of code is:


    catch (exception *) {
        st = stReal;
        _r0 = 0;
        _rStep = 0.0001;
        _rHi = 1e300;
        _rLo = -1e300;
        iRawUndef = iUNDEF;
    }


--
Curt, WE7U.   APRS Client Comparisons: http://www.eskimo.com/~archer
"Lotto:    A tax on people who are bad at math." -- unknown
"Windows:  Microsoft's tax on computer illiterates." -- WE7U
"The world DOES revolve around me:  I picked the coordinate system!"



More information about the Gdal-dev mailing list