I am attempting to compile the following C++ code for creating a Java Virtual Machine, using Xcode on Mac OS-X Mountain Lion:
JNIEnv * createVM(JavaVM **jvm)
OK, found the solution,
the equivalent of g++'s
-L
setting in Xcode is the Link Binary with Libraries setting under the Build Phases tab, not the Library Search Paths list that I mentioned above.
and the library I needed to link to was actually /System/Library/Frameworks/JavaVM.framework/JavaVM,
not libjvm.dylib