This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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>>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]