Re: problem with jni lib

2000-11-02 Thread kason wong
I used g++ instead of gcc now and it seems the error is fixed. thanks for your help. l learned a lot about library files now. Cheers, Kason Joi Ellis wrote: > On Tue, 31 Oct 2000, kason wong wrote: > > > Hi, > > > > I guess I know what's the really problem is. >

Re: problem with jni lib

2000-10-31 Thread kason wong
Hi, I guess I know what's the really problem is. I think I should make my problem more clear. I used to use libutil.a libpthread.a libcops.a to make ReqMsg.cxx executable. now I want to use COPS.cxx and .h files (JNI layers) to link a java program to call ReqMsg. so I modified a little of yo

Re: problem with jni lib

2000-10-31 Thread kason wong
Hi, I get another problem when i ran the java program with jni calling c++ program. Is it the bug of green thread? method unknown (eip = 400dc51b) SIGSEGV 11* segmentation violation si_signo [11]: SIGSEGV 11* segmentation violation si_errno [0]: Success si_code [0]: SI_USER [pi

Re: problem with jni lib

2000-10-30 Thread kason wong
utable file with just -lpthread -lutil, how come i can't make a .so lib with it? Cheers, Kason Joi Ellis wrote: > On Mon, 30 Oct 2000, kason wong wrote: > > > Hi, > > > > thanks, but I still have some problem when i tried to compile all lib into a >static lib. >

Re: problem with jni lib

2000-10-30 Thread kason wong
returned 1 exit status make: *** [libCOPS.a] Error 1 cheers, Kason Joi Ellis wrote: > On Sun, 29 Oct 2000, kason wong wrote: > > > Hi, > > > > Can i load more than one library in jni? I have 4 lib used in my program: > > System.loadLibrary(&

Re: problem with jni lib

2000-10-29 Thread kason wong
en i run my program Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/kw ong/thesis/codes/libutil.so: /home/kwong/thesis/codes/libutil.so: undefined symbol: pthread_cond_timedwait Kason Joi Ellis wrote: > On Sun, 29 Oct 2000, kason wong wrote: > > > hi, > > > > I'

problem with jni lib

2000-10-29 Thread kason wong
hi, I'm not sure this is the mail-list i should send my question. please let me know if I've got the right place. my problem is in the compiling a function in c++ to a .so lib file. the case is I use a couple static .a lib in that c++ program and when i compile it to a .so lib. it doesn't inclu