[450] in java-interest

home help back first fref pref prev next nref lref last post

Re: Converting C strings to Java Strings

daemon@ATHENA.MIT.EDU (Jason Weiler)
Thu Jun 22 19:38:15 1995

Date: Thu, 22 Jun 1995 16:11:39 -0700
From: weilerj@std.teradyne.com (Jason Weiler)
To: jpayne@starwave.com
Cc: java-interest@java.sun.com


jpayne@starwave.com writes:

> 
> 	HArrayOfString *Hstrings;
> 
> 	for (i = 0; i < n; i++) {
> 		char *str = <some null terminated C string>;
> 
> 		unhand(Hstrings)->body[i] = makeJavaString(str, strlen(str));
> 	}

Well, this seems to work (thanks!), but now there's another problem...
When I call makeJavaString() from my native method, the program
crashes and issues a Symbol not found error for __0FOmakeJavaStringPci

Do I need to link another library at compile-time? What did I miss?

Thanks,
-Jason W.
<weilerj@std.teradyne.com>
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post