in reply to Re: [C Question] Determine if gcc provides erfl() function
in thread [C Question] Determine if gcc provides erfl() function
The Makefile.PL builds the executable:/* Check whether erfl and isnanl can be linked. */ #include <stdio.h> #include <math.h> int main(void) { long double rop, op = 0.6L; int ret; rop = erfl(op); ret = isnanl(op); return 0; }
and then runs it:my $out = `$cc $opt -o try.exe -x c try.in -lm 2>&1`;
All of which is done successfully - though there's a warning about erfl() during the building of the executable.my $diag = $^O =~ /mswin32/i ? `try.exe 2>&1` : `./try.exe 2>&1`;
try.in:12:8: warning: incompatible implicit declaration of built-in fu +nction 'erfl'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: [C Question] Determine if gcc provides erfl() function
by syphilis (Archbishop) on Jun 02, 2015 at 08:30 UTC | |
by Anonymous Monk on Jun 02, 2015 at 09:51 UTC | |
|
Re^3: [C Question] Determine if gcc provides erfl() function
by Anonymous Monk on Jun 02, 2015 at 14:14 UTC | |
by syphilis (Archbishop) on Jun 03, 2015 at 11:09 UTC | |
by Anonymous Monk on Jun 03, 2015 at 18:59 UTC | |
by syphilis (Archbishop) on Jun 04, 2015 at 09:40 UTC | |
by syphilis (Archbishop) on Jun 08, 2015 at 13:13 UTC | |
|