From: sbnaran@goofy.ceg.uiuc.edu (siemel naran)
Subject: how to compile with "-fsoft-float"
Date: 1999/09/01 [thread overview]
Message-ID: <slrn7sr0q2.58f.sbnaran@goofy.ceg.uiuc.edu> (raw)
I'd like to turn floating point exceptions off.
For example, +1.0/zero() should give +infinity.
I tried
g++ --pedantic -msoft-float float.cc
but there are some link time errors
// float.cc
#include <iostream.h>
inline double zero() { return 0.0; }
int main()
{
cout << 1.0/zero() << '\n';
}
/tmp/ccSgCt3F.o: In function `main':
float.cc(.text+0x38): undefined reference to `__divdf3'
float.cc(.text+0x3c): undefined reference to `__divdf3'
collect2: ld returned 1 exit status
--
------------
siemel naran
------------
next reply other threads:[~1999-09-01 4:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-01 4:00 siemel naran [this message]
1999-09-02 4:00 ` how to compile with "-fsoft-float" Alex Rhomberg
1999-09-02 4:00 ` siemel naran
1999-09-02 4:00 ` siemel naran
1999-09-08 4:00 ` Emile van bergen
1999-09-09 4:00 ` Jeff Sturm
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