Linking C++ classes

I have two C++ classes that implements some methods. My Java Interface interacts directly with one class. It calls the methods, passes a string to them and expects a string returned. The methods in this first C++ class manipulate the string in various ways. Each character in the string is manipulated and then my second C++ class is called to create a linked list, whereby the manipulated character is inserted into it. The linked list (which eventually contains the completed manipulated string) is then returned (after being type converted) to my Java Interface.

The problem I'm having is the linkage between my first class that contains all the Java signatures (because it interacts directly with my GUI) and my linked list class that acts as a normal C++ class with no Java signatures.

My error is when I run the program, "UnsatisfiedLinkError" undefined symbol LinkedList (which is the name of my linked list class)

Can anyone suggest a solution?

Regards Janie

[1006 byte] By [janienelson] at [2007-9-26 19:21:57]
# 1
I you compiling both files as C++?Compilers tend to compile ".c" files with C linkage and ".cpp" files with C++ linkage. When that occurs C code will not find C++ names.
jschell at 2007-7-3 11:38:14 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
Both are compiled as .cpp files
janienelson at 2007-7-3 11:38:14 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
Don't worry, found pb - forgot to include my linked list class when creating a shared library... Doh!
janienelson at 2007-7-3 11:38:14 > top of Java-index,Java HotSpot Virtual Machine,Specifications...