From: alex <alexandre.masselot@bigfoot.com>
Subject: gcc and gethostbyname: where is the library
Date: Tue, 02 Jul 2002 15:38:44 +0200 [thread overview]
Message-ID: <pan.2002.07.02.15.38.43.451953.6834@bigfoot.com> (raw)
Hello,
I cannot figure out why gcc cannot link the following file:
>cat a.cpp
#include <netdb.h>
main()
{
struct hostent* he;
he = gethostbyname( "testje" );
}
>gcc a.cpp
/usr/bin/ld:
Unresolved:
gethostbyname(char const *)
collect2: ld returned 1 exit status
>gcc -v
Reading specs from /usr/local/lib/gcc-lib/alphaev6-dec-osf5.1/2.95.3/specs
gcc version 2.95.3 20010315 (release)
I've also installed gcc 3.0.4, of course without any success.
Can anyone help me
It would be **greatly** appreciated
Alex
next reply other threads:[~2002-07-02 13:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-02 13:38 alex [this message]
2002-07-02 14:49 ` gcc and gethostbyname: where is the library Paul Pluzhnikov
2002-07-02 17:09 ` Atlant Schmidt
2002-07-03 5:05 ` Paul Pluzhnikov
2002-07-03 7:48 ` alex
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox