This is a discussion on Re: getaddrinfo - SCO ; John Patenella wrote: > I am trying to use the the getaddrinfo call. When I compile everything > works fine. I included sys/socket.h and netdb.h but it fails on the link. > I have used -lsocket but it says it ...
John Patenella wrote:
> I am trying to use the the getaddrinfo call. When I compile everything
> works fine. I included sys/socket.h and netdb.h but it fails on the link.
> I have used -lsocket but it says it can'f find freeaddrinfo and
> getaddrinfo. Any ideas? I am on 5.06A with all of the patches.
You probably need to use "-lsocket -lresolv"; or use "-belf" to build
ELF binaries.
In future, please show actual examples, it is difficult to work from
summarized error messages.
>Bela<