[geos-devel] Help with Compiling

Rookie GIS gisrookie at hotmail.com
Sat Nov 29 13:03:15 EST 2003


Hello Everyone

I recently downloaded Geos Library and have installed the same on linux 8.0. 
  However, I am having problems compiling the source examples.  I have 
followed all the instructions given in the install file: a) configured with 
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure b) did a make 
install c) updated the /etc/ld.so.conf file and ran the ldconfig.

In the examples given I added the path for the header files 
/usr/local/include/geos and tried to compile using g++.  I get the following 
errors:

/tmp/ccbJT8p2.o: In function `main':
/tmp/ccbJT8p2.o(.text+0x51): undefined reference to 
`geos::CoordinateListFactory::internalFactory'
/tmp/ccbJT8p2.o(.text+0x59): undefined reference to 
`geos::CoordinateListFactory::internalFactory'
/tmp/ccbJT8p2.o(.text+0x92b): undefined reference to 
`geos::CoordinateListFactory::internalFactory'
/tmp/ccbJT8p2.o(.text+0x948): undefined reference to 
`geos::CoordinateListFactory::internalFactory'
/tmp/ccbJT8p2.o(.text+0x950): undefined reference to 
`geos::CoordinateListFactory::internalFactory'
/tmp/ccbJT8p2.o(.text+0xcf5): undefined reference to 
`geos::PointCoordinateList::add(geos::point_3d)'
/tmp/ccbJT8p2.o(.text+0xd17): undefined reference to 
`geos::PointCoordinateList::add(geos::point_3d)'
/tmp/ccbJT8p2.o(.text+0xd3c): undefined reference to 
`geos::PointCoordinateList::add(geos::point_3d)'
/tmp/ccbJT8p2.o(.text+0xeff): undefined reference to 
`geos::PointCoordinateList::setAt(geos::point_3d, int)'
/tmp/ccbJT8p2.o(.text+0x10a2): undefined reference to 
`geos::PrecisionModel::PrecisionModel[in-charge]()'
/tmp/ccbJT8p2.o(.text+0x10be): undefined reference to 
`geos::GeometryFactory::GeometryFactory[in-charge](geos::PrecisionModel 
const*, int)'
/tmp/ccbJT8p2.o(.text+0x11d2): undefined reference to 
`geos::GeometryFactory::createLinearRing(geos::CoordinateList*)'
/tmp/ccbJT8p2.o(.text+0x11e1): undefined reference to 
`geos::GeometryFactory::createPolygon(geos::LinearRing*, 
std::vector<geos::Geometry*, std::allocator<geos::Geometry*> >*)'
/tmp/ccbJT8p2.o(.text+0x12c8): undefined reference to 
`geos::GeometryFactory::createLinearRing(geos::CoordinateList*)'
/tmp/ccbJT8p2.o(.text+0x12d7): undefined reference to 
`geos::GeometryFactory::createPolygon(geos::LinearRing*, 
std::vector<geos::Geometry*, std::allocator<geos::Geometry*> >*)'
/tmp/ccbJT8p2.o(.text+0x1426): undefined reference to 
`geos::IntersectionMatrix::toString()'
/tmp/ccbJT8p2.o(.gnu.linkonce.d._ZTIPN4geos13GEOSExceptionE+0xc): undefined 
reference to `typeinfo for geos::GEOSException'
/tmp/ccbJT8p2.o: In function 
`geos::PointCoordinateListFactory::createCoordinateList()':
/tmp/ccbJT8p2.o(.gnu.linkonce.t._ZN4geos26PointCoordinateListFactory20createCoordinateListEv+0x21): 
undefined reference to 
`geos::PointCoordinateList::PointCoordinateList[in-charge]()'
/tmp/ccbJT8p2.o: In function 
`geos::PointCoordinateListFactory::createCoordinateList(int)':
/tmp/ccbJT8p2.o(.gnu.linkonce.t._ZN4geos26PointCoordinateListFactory20createCoordinateListEi+0x24): 
undefined reference to 
`geos::PointCoordinateList::PointCoordinateList[in-charge](int)'
/tmp/ccbJT8p2.o: In function 
`geos::PointCoordinateListFactory::createCoordinateList(geos::Coordinate 
const&)':
/tmp/ccbJT8p2.o(.gnu.linkonce.t._ZN4geos26PointCoordinateListFactory20createCoordinateListERKNS_10CoordinateE+0x24): 
undefined reference to 
`geos::PointCoordinateList::PointCoordinateList[in-charge](geos::Coordinate 
const&)'
/tmp/ccbJT8p2.o: In function 
`geos::PointCoordinateListFactory::createCoordinateList(geos::CoordinateList 
const*)':
/tmp/ccbJT8p2.o(.gnu.linkonce.t._ZN4geos26PointCoordinateListFactory20createCoordinateListEPKNS_14CoordinateListE+0x24): 
undefined reference to 
`geos::PointCoordinateList::PointCoordinateList[in-charge](geos::CoordinateList 
const*)'
collect2: ld returned 1 exit status

I would be thankful if someone can help me get started and help me with the 
above.

Thanks
Sunil Achyut

_________________________________________________________________
Gift-shop online from the comfort of home at MSN Shopping!  No crowds, free 
parking.  http://shopping.msn.com




More information about the geos-devel mailing list