From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,2d60095dfc9873e5,start X-Google-Attributes: gid111c93,public From: sbnaran@goofy.ceg.uiuc.edu (siemel naran) Subject: how to compile with "-fsoft-float" Date: 1999/09/01 Message-ID: #1/1 X-Deja-AN: 519891105 Organization: University of Illinois at Urbana-Champaign User-Agent: slrn/0.9.5.4 (UNIX) Reply-To: sbnaran@KILL.uiuc.edu Newsgroups: comp.os.linux.alpha 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 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 ------------