This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: compilation [afterthought/clarification]
Hi again, Morris,
Just to be sure I haven't been too vague - which, it occurred to
me on rereading this, might have been the case - the correct
and complete command to build this module is as follows:
gcc http_get.c -o http -lsocket -lnsl
I'll be offline most of this weekend. You shouldn't have a
problem with compilation errors from this point on, but if
you still have any other unsolved problems by Monday,
I'll try to help out if I can.
Jerry
----- Original Message -----
From: Jerry Miller <gmiller@cs.sunysb.edu>
To: Salari, Morris M <MMSc@pge.com>; <help-gcc@gnu.org>
Sent: Friday, February 23, 2001 3:21 PM
Subject: Re: compilation
> Hi Morris,
>
> Somehow, I never before encountered the need for "-lnsl",
> but libnsl.a contains the missing "gethostbyname". I think
> it will work after this.
>
> Jerry
>
> ----- Original Message -----
> From: Salari, Morris M <MMSc@pge.com>
> To: <help-gcc@gnu.org>
> Sent: Friday, February 23, 2001 2:04 PM
> Subject: compilation
>
>
> > Hi Jerry,
> > I put "lsocket" in command line with gcc, it does not compile and
creating
> > the message that I put them in a file.
> > The syntax I used:
> > gcc -lsocket http_get.c -o http
> > It does not create the object file http, I attched the message file.
> > Please rescue and let me know that I should use differnet syntax for
> > compilation.
> > Thanks again.
> > Morris Salari <<gcerror.1>>
> >
>
>