I have two C++ .so files. One of these .so's calls functions packaged within another. How do do I link and call these both within a Java program? Do I need to build 1 .so with both of their contents in it, or is it usable to have 2 of them, using loadLibrary to get access to both of them in Java? I tried the latter and it isn't working, but I'm not sure if its for the reason that I'm not supposed to be doing it that way, or because I'm doing something else wrong.