HP3000-L Archives

October 1999, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"BIXBY,MARK (HP-Cupertino,ex1)" <[log in to unmask]>
Reply To:
BIXBY,MARK (HP-Cupertino,ex1)
Date:
Thu, 28 Oct 1999 15:45:53 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (26 lines)
> -----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.

ATOM RSS1 RSS2