hello all
i run a fedora core 3 newly installed
I'm new to gcc, i used to compile my program under borland c/c++ until yet.
i have a problem compiling my programs with gcc.
look at this example :
#include <math.h>
int main(void) {
float toto = 3.23;
float titi;
titi = floorf(toto);
}
when i try to compile it with :
$ gcc -o test test.c
i get :
/tmp/ccGtZYgC.o(.text+0x2b): In function `main':
: undefined reference to `floorf'
collect2: ld returned 1 exit status
and this is just an example, i tried with several other headers and i get this type of error with whatever function i use...
can someone help me ?
thx !!
vince