[SunHELP] Basic port programming
Dale Ghent
daleg at elemental.org
Wed May 15 13:28:58 CDT 2002
On Wed, 15 May 2002, Anthony J. Gabrielson wrote:
| Hello all,
| Trying to do some basic port programming and build on just a small
| piece of code so I can understand it. My solaris box is giving me a bit
| of headache. I'm taking, which runs fine under linux and cygwin and
| compile it - it has other ideas. Here are the errors I'm getting:
| bash-2.03$ gcc getip.c
| Undefined first referenced
| symbol in file
| gethostbyname /var/tmp/cctNqaTN.o
| inet_ntoa /var/tmp/cctNqaTN.o
| herror /var/tmp/cctNqaTN.o
| ld: fatal: Symbol referencing errors. No output written to a.out
| collect2: ld returned 1 exit status
The socket man page would tell you that you need to link against two
libraries: libsocket and libnsl
/dale
More information about the SunHELP
mailing list