Hello, I currently have some C++ code that I want to compile into a shared library that I can dynamically link to a Java application during runtime using the Java Native Interface (JNI). The problem that I'm facing is - the C++ code that I'm trying to compile calls on another library itself, making use of a lot of classes and different header files. When I try to make it into a .dll file, I get a lot of linker errors (saying that I have unresolved external symbols - all of which belong to the source code that my C++ code calls from). Now I don't want to have to copy all of the external code (which is actually a library called VTK) into my own source - I just want a dynamically linkable library that has my own C++ code's functionality (which means it'd would need to be able to still recognize the external code that I don't want to duplicate).
Please feel free to ask any leading questions.