> Thanks everyone for the help. However, it is still not working properly. > > > By changing the order around like Meng and Claudio suggested I was able > to get the application to compile and link. The problem is that it did > not link statically. Can you try ldd "your program" to see what libraries are linked. I wondered why it wasn't link statically if you have -static option. I guess the static link would require *.a library. This might not be a gcc issue. > > Is there something in gcc that could change the link defaults? Or is > this a Solaris issue? > try: setenv LD_OPTIONS -Bstatic > Good luck -Meng