Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Jouk Jansen <joukj@hrem.stm.tudelft.nl>
Subject: c++(gcc) & gethostbyname
Date: Fri, 02 Feb 2001 12:06:41 +0100	[thread overview]
Message-ID: <3A7AA2D0.5FCF4355@hrem.stm.tudelft.nl> (raw)

Hi all,

Is it a known problem that c++(gcc) cannot include gethostbyname?
gcc, and Compaq's cc and cxx seem to work well (see example below)

         Jouk




focus-jj) cc test.c
focus-jj) gcc test.c
focus-jj) ren test.c test.cpp
focus-jj) c++ test.cpp
/usr/ucb/ld:
Unresolved:
gethostbyname(char const *)
collect2: ld returned 1 exit status
focus-jj) cxx test.cpp
 cat test.cpp
#include <netdb.h>
main()
{
   struct hostent* he;

   he = gethostbyname( "testje" );
}
focus-jj)


             reply	other threads:[~2001-02-02 11:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-02 11:06 Jouk Jansen [this message]
2001-02-03 10:48 ` c++(gcc) & gethostbyname Mark Garrett
2001-02-03 18:21 ` Dan Riley
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