Hello,
I have a problem with some code to compile.
The program is:
The error/output I get is:
I am wondering whether the warning: incompatible implicit declaration of built-in function 'expl' is directly related to the problem.
Sorry I am really not an expert,
Thanks,
plichel
I have a problem with some code to compile.
The program is:
Code:
#include <math.h>
int main(void)
{
double e=expl(2);
//logl(2);
return 1;
}
The error/output I get is:
Code:
test.c: In function 'main':
test.c:5: warning: incompatible implicit declaration of built-in function 'expl'
/var/tmp//ccOg5PBt.o(.text+0x20): In function `main':
: undefined reference to `expl'
Code:
find /usr/src/ -name "math.h"
/usr/src/contrib/libstdc++/include/c_compatibility/math.h
/usr/src/contrib/libstdc++/include/tr1/math.h
/usr/src/lib/msun/src/math.h"]
I am wondering whether the warning: incompatible implicit declaration of built-in function 'expl' is directly related to the problem.
Sorry I am really not an expert,
Thanks,
plichel
Last edited by a moderator: