This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
std::string cppstr("Hello, C++ String");
jstring jstr = JvNewString(cppstr.c_str(),20);
// it fails also with
jstring jstr = JvNewStringUTF(cppstr.c_str());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
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |