C++ accessing GCJ
David Blasby
dblasby@gmail.com
Fri Apr 8 23:58:00 GMT 2005
Scott,
I've done something similiar to this - see
"http://docs.codehaus.org/display/GEOS/SpatialDBBox".
JTS is a java spatial-operations library. Spatial DB in a Box allows
PostgreSQL (a C application) to call it (the gcj compiled version)
through an autogenerated C++ wrapper.
All the bindings (C and C++) are autogenerated so its pretty slick.
dave
ps. These are the most interesting pages:
http://docs.codehaus.org/display/GEOS/Postgresql+Bindings
http://docs.codehaus.org/display/GEOS/Add+A+Function
pps. If TCL is a C application, you will need to link TCL (if you're
using linux) with the stdc++ library or most exceptions (c++ or
otherwise) will crash your program.
More information about the Java
mailing list