Thank you very much Andy. The library problem is now solved. I checked the symbolic link to libdl.so.1, and it is fine.From the test using your small c code c_link_test, it suggested somethingfundamental causing the difference between your and my results, so I checked my initial environment setting and found this line below in my .cshrc: setenv LD_OPTIONS -Bstatic Gees. Remove it and it goes.
Don't ya just hate it when that happens :) Glad you got it going.
Andy