Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* how to compile with "-fsoft-float"
@ 1999-09-01  4:00 siemel naran
  1999-09-02  4:00 ` Alex Rhomberg
  0 siblings, 1 reply; 6+ messages in thread
From: siemel naran @ 1999-09-01  4:00 UTC (permalink / 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
------------



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

end of thread, other threads:[~1999-09-09  4:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-09-01  4:00 how to compile with "-fsoft-float" siemel naran
1999-09-02  4:00 ` 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

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