From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 20362 invoked from network); 8 Sep 1998 23:23:18 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 8 Sep 1998 23:23:17 -0000 Received: from ares.cs.Virginia.EDU (ares.cs.Virginia.EDU [128.143.137.19]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id TAA08704 for ; Tue, 8 Sep 1998 19:23:59 -0400 Received: from adder.cs.Virginia.EDU (adder.cs.Virginia.EDU [128.143.137.18]) by ares.cs.Virginia.EDU (8.8.5/8.8.5) with ESMTP id TAA12768 for ; Tue, 8 Sep 1998 19:23:11 -0400 (EDT) From: Greg Lindahl Received: (from lindahl@localhost) by adder.cs.Virginia.EDU (8.7.5/8.7.3) id TAA25743 for axp-list@redhat.com; Tue, 8 Sep 1998 19:23:10 -0400 (EDT) Date: Tue, 8 Sep 1998 19:23:10 -0400 (EDT) Message-Id: <199809082323.TAA25743@adder.cs.Virginia.EDU> X-Mailer: Mail User's Shell (7.2.5 10/14/92) To: axp-list@redhat.com Subject: Re: Problems with g++ and netdb functions > The following example code core dumps when compiled as a C++ > program, but runs when compiled as a C program: > #if defined (__cplusplus) > extern "C" { > #endif > void setservent(int); > #if defined (__cplusplus) > } > #endif > int main(int argc, char **argv) > { > setservent(1); > } Lord only knows if the RedHat 5.0 C++ stuff was ever really fixed. You're much better off installing 5.1 or egcs. -- g