From: "Patrick Mitran" Newsgroups: comp.os.msdos.djgpp References: Subject: Re: libm question Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: Date: Wed, 11 Jul 2001 14:04:59 GMT NNTP-Posting-Host: 132.206.69.38 X-Complaints-To: abuse AT mcgill DOT ca X-Trace: carnaval.risq.qc.ca 994860299 132.206.69.38 (Wed, 11 Jul 2001 10:04:59 EDT) NNTP-Posting-Date: Wed, 11 Jul 2001 10:04:59 EDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Eli Zaretskii" wrote in message news:Pine DOT SUN DOT 3 DOT 91 DOT 1010711082443 DOT 1314I-100000 AT is... > > On Tue, 10 Jul 2001, Patrick Mitran wrote: > > > The program I'm writting should eventually run on unix/Linux boxes (for > > my personal use only) so using the erfc() is not going to make my code > > portatble. > > ??? AFAIK, erfc is available on most modern systems, including Unix and > GNU/Linux systems. You need to link with -lm, but that's all. > > So why did you think erfc makes your code non-portable? Well, because it says that none of the variants of erf are ANSI in the libm info. Now if it turns out that the systems I need it on do have erfc in the libm library, then that solves my problem. Patrick