Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Greg Lindahl <lindahl@cs.virginia.edu>
To: axp-list@redhat.com
Subject: Re: Problems with g++ and netdb functions
Date: Tue, 8 Sep 1998 19:23:10 -0400 (EDT)	[thread overview]
Message-ID: <199809082323.TAA25743@adder.cs.Virginia.EDU> (raw)

> 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


             reply	other threads:[~1998-09-08 23:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-08 23:23 Greg Lindahl [this message]
1998-09-11  1:17 ` Problems with g++ and netdb functions Jerry Feldman
  -- strict thread matches above, loose matches on Subject: below --
1998-09-08 11:33 Jerry Feldman
1998-09-08 21:39 ` Brian Wood
1998-09-09 14:46   ` Charl Botha
1998-09-08 22:36 ` Wes Bauske
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