This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ accessing GCJ


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]