This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: C++ accessing GCJ
- From: David Blasby <dblasby at gmail dot com>
- To: Scott Serr <sserr at amis dot com>
- Cc: java at gcc dot gnu dot org
- Date: Fri, 8 Apr 2005 16:58:42 -0700
- Subject: Re: C++ accessing GCJ
- References: <42571427.4000209@amis.com>
- Reply-to: David Blasby <dblasby at gmail dot com>
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.