Ask another question about JIN and C/C++

Using JNI on Solaris, is there any differences to build a shared library compiled from C code or C++ code?
[121 byte] By [lixing_ma] at [2007-9-26 10:33:18]
# 1

Huh?

If you create a C/C++ file and use jni.h and use the method signatures from javah then either file will work. Depending on various factors, like the file extension, then you might have to specify different command line options to get the file to build.

A C++ file could have templates would add additional problematic concerns.

If you are talking about a C/C++ object files/shared libraries in general then there are conceptual differences (like mangled names) but no actual differences (mangled name is a legitimate C ident.)

jschell at 2007-7-1 22:55:29 > top of Java-index,Java HotSpot Virtual Machine,Specifications...