gcjh, Headers hierarchy and namespaces

Florian Bourgier fbourgier@sycomore-multimedia.com
Tue Jul 20 12:53:00 GMT 2004


Thanks a lot it is linking and I get an executable. Bit at the 
execution, it is making a core.
What is wrong with my code ?
 std::string cppstr("Hello, C++ String");
 jstring jstr = JvNewString(cppstr.c_str(),20);
 // it fails also with
 jstring jstr = JvNewStringUTF(cppstr.c_str());
Is there somewhere a documentation to find how to handles jstring, 
std::string and java::lang::String ?
because it is really difficult to find information in headers.
Can you tell me where jstring is defined for example ?
Thanks a lot
Regards,
Michael Koch wrote:
>Am Dienstag, 20. Juli 2004 14:04 schrieb Florian Bourgier:
>>>>Thanks a lot. It allows me to go further but I still got errors
>>like these :
>>>>natIconv.cc: undefined reference to `_libiconv'
>>/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(natInflater
>>.o)(.text+0x88 ):natInflater.cc: undefined reference to
>>`_inflateEnd'
>>/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(natInflater
>>.o)(.text+0x4f 1):natInflater.cc: undefined reference to `_inflate'
>>>>Another library to link ?
>>>>>>Hmm, this should automtically be included. Looks like a bug in this 
>GCC version. Better try to link with gcj instead of g++. You may need 
>to add -lstdc++ instead of -lgcj then.
>>>Michael
>>>


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /