problem with using OFSTREAM in jni C++ program on Solaris 2.8

I have unsatisfiedlinkerror when try to use ofstream. Did anybody else have this problem on Solaris 2.8 and figured out why?, please let me know the solution. I have tried everything and could not get it to work. Could it be that stream stuff are not ANSI C and on Solaris, JNI version does not support it?

Thanks

[333 byte] By [112763] at [2007-9-26 14:11:10]
# 1

Hello:

Have you solved your problem?

I also have an unsatisfiedlinkerror when I try to use socket functions and maybe has something to do with your error.

I have read that if your have unrefered symbols, then your get the error. Try doing this:

nm yoursharedlibrary.so | grep UNDEF

If you get unrefered symbols then maybe you need a .h file in your C program or your have to include a library when linking.

When I included socket functions, I have unrefered symbols like printf, send, time,fopen,strcpy,memset... I have included all the .h files I found necessary and I have linked with -lsocket. I cannot solve the problem. If you have solved this problem could you please tell me what did you do?

Thanks

mperezg1 at 2007-7-2 15:35:55 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2

Hello:

Have you solved your problem?

I also have an unsatisfiedlinkerror when I try to use socket functions and maybe has something to do with your error.

I have read that if your have unrefered symbols, then your get the error. Try doing this:

nm yoursharedlibrary.so | grep UNDEF

If you get unrefered symbols then maybe you need a .h file in your C program or your have to include a library when linking.

When I included socket functions, I have unrefered symbols like printf, send, time,fopen,strcpy,memset... I have included all the .h files I found necessary and I have linked with -lsocket. I cannot solve the problem. If you have solved this problem could you please tell me what did you do?

Thanks

PD. My code works perfectly in Windows but not in Solaris !

mperezg1 at 2007-7-2 15:35:55 > top of Java-index,Java HotSpot Virtual Machine,Specifications...