We're wandering OT here, but I hope this is useful to others dealing
with JNI/C++ integration...
Paul Beardsley wrote:
>
> That looks like the problem - I wasn't including the
> templated source at the end of the .h file.
>
> It raises
> a question for me though - for my template classes,
> I p
That looks like the problem - I wasn't including the
templated source at the end of the .h file.
It raises
a question for me though - for my template classes,
I previously had a MyFile.H file (with no included source
at the end) and a MyFile.C file which included MyFile.H
at the start and the
Paul Beardsley wrote:
>
> Nathan,
>
> Thanks for the reply.
>
> I just tried recompiling using -D_REENTRANT -fpic,
> but the same errors are occurring. When I run
> java, I get
You answered my point of curiosity about where the reference was coming
from... it's one of your templated classes r
Paul Beardsley wrote:
> I used "ldd -r libmylib.so" to look at my shared
> library and that also gave a list
> of undefined symbols, starting with the
> same symbol which Java lists as an unsatisfied link.
And what might that symbol (or some of those symbols) be? That info
would help diagnose the
I just started working on Redhat 6.0 using
jdk 1.2, and I would like to use a Java GUI
linked to a C++ .so library (compiled with g++),
communicating via the JNI.
I successfully linked the Java GUI to the C++ library
when no templates were used, but now I am linking to
C++ classes which are te