Subject: Re: -mieee option
To: Wada Tatsuaki <wada@faraday.ee.ibaraki.ac.jp>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: current-users
Date: 01/14/1999 11:11:05
On Thu, 14 Jan 1999 14:58:56 +0900
Wada Tatsuaki <wada@faraday.ee.ibaraki.ac.jp> wrote:
> When I tried to the following simple c++ source ( "min.cc" ),
>
> #include <iostream.h>
> #include <float.h>
>
> int main()
> {
> cout << DBL_MIN << endl;
>
> }
>
> I got the warning,
>
> > g++ min.cc -mieee
> /usr/lib/libstdc++.so: warning: reference to compatibility vfork();
> include <unistd.h> for correct reference
Regarding this... iopopen.c only includes <unistd.h> if _LIBC is defined.
We do NOT want to define _LIBC, but we want to pull in <unistd.h>, so we
must alter the sources, I guess...
> and it core dumped.
>
> >./a.out
> Floating point exception (core dumped)
this I don't know about...
Jason R. Thorpe thorpej@nas.nasa.gov
NASA Ames Research Center Home: +1 408 866 1912
NAS: M/S 258-5 Work: +1 650 604 0935
Moffett Field, CA 94035 Pager: +1 650 940 5942