>>>>> satya seshu kumar dammu writes:

> i am getting undefined symbol errors when System.loadLibrary is
> loading shared object file.


> i have a java class called "hello" ( very simple one like we all
> imagine) it has a single native method and the native method
> implementation is in "hello.c" the native method implementation in
> hello.c makes a call to "lstat"


> my gcc compile options are %gcc -g -shared -lc_nonshared
> -I/usr/include -I/usr/share/jdk1.1.6/include
> -I/usr/share/jdk1.1.6/include/genunix -L/lib -L/usr/lib
> -L/usr/share/jdk1.1.6/lib
> -L/usr/share/jdk1.1.6/lib/i686/green_threads hello.c -o libhello.so

I have tried your HelloWorld2 program and it works fine on my machine.
I even don't have to link against c_nonshared

Is your libc of recent date?


        Juergen

-- 
Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V
Baroper Strasse 301, D-44221 Dortmund, Germany
Phone: ++49 231/755-5806, Fax: ++49 231/755-5802

Reply via email to