On 4/8/06, Xie Gang <[EMAIL PROTECTED]> wrote: > I wrote a socket program and compiled it on solaris. I found it quite > different from linux. The gcc did not search for the socket lib > automatically. The -lsocket must be given. > I don't know why this happens.
On Linux the socket calls are in (g)libc so it's not that the linux linker magically searches for libsocket.so - such a library simply does not exist on Linux. However, I do sympathise - the fact that one needs to add -lsocket to the linker flags trips up many an open source app. when building it on Solaris and it gets annoying after a while. Paul -- Paul Durrant http://www.linkedin.com/in/pdurrant _______________________________________________ networking-discuss mailing list networking-discuss@opensolaris.org