mapogr.cpp compile problem

ABE Water Research Account watergen at ECN.PURDUE.EDU
Wed Aug 3 12:06:13 PDT 2005


HI, when I compile map server 3.6.4, it gave this error,

./libmap.a(mapogr.o): In function `msLoadWKTProjectionString':
mapogr.cpp:(.text+0xc): undefined reference to
`OGRSpatialReference::OGRSpatialReference(char const*)'
mapogr.cpp:(.text+0x1c): undefined reference to
`OGRSpatialReference::importFromWkt(char**)'
mapogr.cpp:(.text+0x48): undefined reference to
`OGRSpatialReference::~OGRSpatialReference()'
mapogr.cpp:(.text+0x60): undefined reference to 
`OGRSpatialReference::IsLocal
() const'
mapogr.cpp:(.text+0x78): undefined reference to
`OGRSpatialReference::exportToProj4(char**) const'
mapogr.cpp:(.text+0xd0): undefined reference to
`OGRSpatialReference::~OGRSpatialReference()'
mapogr.cpp:(.text+0x10c): undefined reference to
`OGRSpatialReference::~OGRSpatialReference()'
./libmap.a(mapogr.o): In function `msOGRSpatialRef2ProjectionObj
(OGRSpatialReference*, projectionObj*)':
mapogr.cpp:(.text+0x16c): undefined reference to 
`OGRSpatialReference::IsLocal
() const'
mapogr.cpp:(.text+0x188): undefined reference to
`OGRSpatialReference::exportToProj4(char**) const'
./libmap.a(mapogr.o): In function `msOGCWKT2ProjectionObj':
mapogr.cpp:(.text+0x22c): undefined reference to
`OGRSpatialReference::OGRSpatialReference(char const*)'
mapogr.cpp:(.text+0x23c): undefined reference to
`OGRSpatialReference::importFromWkt(char**)'
mapogr.cpp:(.text+0x26c): undefined reference to
`OGRSpatialReference::~OGRSpatialReference()'
mapogr.cpp:(.text+0x288): undefined reference to
`OGRSpatialReference::~OGRSpatialReference()'
mapogr.cpp:(.text+0x298): undefined reference to
`OGRSpatialReference::~OGRSpatialReference()'
/usr/local/bin/ld: shp2img: hidden symbol `__eprintf'
in /package/GNU/gcc/3.4.3/sparc-sunos5.8/lib/gcc/sparc-sun-
solaris2.8/3.4.3/libgcc.a(_eprintf.oS) is referenced by DSO
/usr/local/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1

Please HELP.



More information about the MapServer-users mailing list