[geos-devel] Exception Issues

David Blasby dblasby at refractions.net
Tue May 27 13:00:40 EDT 2003


chodgson at refractions.net wrote:
> My guess is that you should compile and link using g++ instead of gcc?

You cannot compile postgis with g++ because of the use of "delete" (a 
reserved word in c++) in the postgresql memory manager.  Thats a pain in 
the butt.

I tried just using linking using g++ instead of gcc, but it gives the 
same results (just in a different order).

[dblasby at hydra postgis]$ g++  -g -Wall -Wmissing-prototypes 
-Wmissing-declarations -g -I. -DFRONTEND 
-DSYSCONFDIR='"/opt/pgsql73/etc"'  -DUSE_VERSION=73 
-I/usr/local/include/geos -DUSE_GEOS -I/usr/local/include -DUSE_PROJ 
-fpic -shared -Wl,-soname,libpostgis.so.0 postgis_debug.o postgis_ops.o 
postgis_fn.o postgis_inout.o postgis_proj.o postgis_chip.o 
postgis_transform.o postgis_gist_72.o postgis_estimate.o postgis_geos.o 
postgis_geos_wrapper.o    -lstdc++ -L/usr/local/lib -lgeos 
-L/usr/local/lib -lproj   -Wl,-rpath,/opt/pgsql73/lib -o libpostgis.so.0.8

[dblasby at hydra postgis]$ ldd libpostgis.so.0.8
         libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 
(0x4003d000)
         libgeos.so.1 => /usr/local/lib/libgeos.so.1 (0x4008a000)
         libproj.so.0 => /usr/local/lib/libproj.so.0 (0x40144000)
         libm.so.6 => /lib/libm.so.6 (0x40174000)
         libc.so.6 => /lib/libc.so.6 (0x40196000)
         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)





More information about the geos-devel mailing list