> -----Original Message-----
> From: Bob Walker [mailto:[log in to unmask]]
> Sent: Thursday, October 28, 1999 3:15 AM
> To: [log in to unmask]
> Subject: gcc and Socket question
>
>
> I've been here before(and solved it) but seem to have lost my notes
> or my mind.
>
> I'm trying to re-compile a program with gcc that uses sockets.
> I believe I need to include the HP socket libraries somewhere in the
> compile and can't remember how to do this(<blush>).
>
> Help please.
>
> Error when running the program:
> UNRESOLVED EXTERNALS: gethostname (LDRERR 512)
> UNRESOLVED EXTERNALS: bind (LDRERR 512)
> UNRESOLVED EXTERNALS: socket (LDRERR 512)
> UNRESOLVED EXTERNALS: getsockname (LDRERR 512)
Compile with -lsocket and that should resolve the socket functions.
- Mark B.