Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* gcc and gethostbyname: where is the library
@ 2002-07-02 13:38 alex
  2002-07-02 14:49 ` Paul Pluzhnikov
  2002-07-03  7:48 ` alex
  0 siblings, 2 replies; 5+ messages in thread
From: alex @ 2002-07-02 13:38 UTC (permalink / 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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-07-03  7:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-02 13:38 gcc and gethostbyname: where is the library alex
2002-07-02 14:49 ` Paul Pluzhnikov
2002-07-02 17:09   ` Atlant Schmidt
2002-07-03  5:05     ` Paul Pluzhnikov
2002-07-03  7:48 ` alex

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox