Recommendation Request: JNI and STL

OK, after coming across the "std::distance<std::ForwardIterator, std::ForwardIterator> error, I've been leaning towards using stlport.

But, as is quite clearly defined in the docs, you can't mix stlport and Cstd.

So.... what about JNI? Can I link against libjvm.so from an stlport-compiled binary?

Are there any docs that can give me "recommendations" in this direction? I'm working on some cross-platform code and trying to migrate from gcc to sun studio for my compiler and I'm trying to avoid any pitfalls (and it looks like Cstd is less preferable to stlport in general.)

Thanks for any advice :)

[641 byte] By [dlacostea] at [2007-11-27 4:36:49]
# 1
There should be no problem using JNI when C++ code uses STLport.
clamage45a at 2007-7-12 9:46:59 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2

If you are thinking about switching to a replacement C++ Standard Library you might want

to consider Apache stdcxx. The Apache C++ Standard Library is a conforming, highly

efficient and portable implementation based on the Rogue Wave C++ Standard Library,

that unlike STLport comes with a robust support for localization and internationalization,

including native support for UTF-8 and UCS-4. In addition, the library provides extensive

online documentation including an up to date Class Reference and User's Guide.

See http://incubator.apache.org/stdcxx/ for more.

sebor@roguewave.coma at 2007-7-12 9:46:59 > top of Java-index,Development Tools,Solaris and Linux Development Tools...