Hi everybody,
Could you please help me to get this error over?
Say, I write a very simple c program as below
#include <math.h>
#include <stdio.h>
int main()
{
int i;
i=floor(2.3);
return 0;
}
Then compile by the gcc
gcc -o test test.c
and I always get the error " undefined reference to `floor' "
Thanks in advance
Cheers,
Dat
Programming and creating plugins and templates
Blog
Could you please help me to get this error over?
Say, I write a very simple c program as below
#include <math.h>
#include <stdio.h>
int main()
{
int i;
i=floor(2.3);
return 0;
}
Then compile by the gcc
gcc -o test test.c
and I always get the error " undefined reference to `floor' "

Thanks in advance
Cheers,
Dat
Programming and creating plugins and templates
Blog