Linking C code with GCJ
Tom Tromey
tromey@cygnus.com
Tue Oct 19 11:23:00 GMT 1999
>>>>> "Daniel" == Daniel P Zepeda <dpz@pobox.com> writes:
Daniel> What are other people doing?
We do as Kresten says: compile C code with the C compiler, declare C
functions with `extern "C"' when compiling C++ code, and call the C
functions from CNI methods. There are examples of this in libjava
itself; e.g. see java/lang/natMath.cc (for the C++ side) and
java/lang/fdlibm.h (for some of the C side).
Tom
More information about the Java
mailing list