Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* c++(gcc) & gethostbyname
@ 2001-02-02 11:06 Jouk Jansen
  2001-02-03 10:48 ` Mark Garrett
  2001-02-03 18:21 ` Dan Riley
  0 siblings, 2 replies; 3+ messages in thread
From: Jouk Jansen @ 2001-02-02 11:06 UTC (permalink / 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)


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

end of thread, other threads:[~2001-02-03 18:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-02 11:06 c++(gcc) & gethostbyname Jouk Jansen
2001-02-03 10:48 ` Mark Garrett
2001-02-03 18:21 ` Dan Riley

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