Re: Problem building Javaconnect
Neil <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.java |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Antonio Sorrentini wrote: > f:/mozilla_sources/sources_from_cvs/mozilla/extensions/java/xpcom/src/../nsJavaInterfaces.cpp: > In function `_jobject* > Java_org_mozilla_xpcom_internal_XPCOMImpl_newLocalFile(JNIEnv*, > _jobject*, _jstring*, jboolean)': > f:/mozilla_sources/sources_from_cvs/mozilla/extensions/java/xpcom/src/../nsJavaInterfaces.cpp:210: > error: invalid conversion from `const jchar*' to `const PRUnichar*' > f:/mozilla_sources/sources_from_cvs/mozilla/extensions/java/xpcom/src/../nsJavaInterfaces.cpp:216: > error: no matching function for call to > `JNIEnv_::ReleaseStringChars(_jstring*&, const PRUnichar*&)' > C:/Programmi/Java/jdk1.5.0_05/include/jni.h:1574: note: candidates > are: void JNIEnv_::ReleaseStringChars(_jstring*, const jchar*) <near > match> Unlike our other build systems, MinGW likes to distinguish between our various 16-bit char types. If you look through the JavaScript source you'll notice a sprinkling of casts to work around the issue, but I guess Javaconnect either isn't supported or just won't work with MinGW. -- Warning: May contain traces of nuts.