Mark Fardal wrote:
> 
> > What happens if you use the debug version of the java interpreter (java_g)?
> >
> > Steve
> >
> 
> The result is the same as was reported with 1.1.5, it reads a single string
> and returns fine.
> 
> weka:native[ 996 ] java_g Prompt
> Type a line: hi there
> A diagnostic message...
> User typed: hi
> 
> This is correct behavior I believe, the example only reads a single
> string (%s).  Odd that the debug version changes the behavior but
> it's nice to know the easy workaround.
> 
> Thanks,
> Mark Fardal
> UMass

Hi-

I reported that 1.1.5v7 works OK, so I was interested and tried this
also. However, I get the strange (?) behavior that it then expects the
shared libary to end in "_g":

[user@ravel native]$ java_g Prompt
libMyImpOfPrompt_g.so: cannot open shared object file: No such file or
directory (libMyImpOfPrompt_g.so)

when I compile the C code to a shared library named
"libMyImpOfPrompt_g.so" it then works:

[user@ravel native]$ java_g Prompt
Type a line: Hi there
User typed: Hi there

(I've also altered the original "scanf" code to get user input up to a
'\n').

Bob L.
-- 
Robert Lynch-Berkeley CA [EMAIL PROTECTED]
http://www.best.com/~rmlynch/

Reply via email to