Compiling GD : Undefined Reference to 'COS'
Posted on 2003-03-27
I've ben trying to compile GD under Redhat Linux 7.3 using GCC, and can't seem to get past one particular problem. I have tried adding a -ml to get the compiler to use the math library, but to no avail. Please let me know if you have any ideas on why i can't get past the calls to sin and cos functions. Grrrr....
[TAIL OF MAKE INSTALL]
gcc -g -O2 -o .libs/annotate annotate.o ./.libs/libgd.so -Wl,--rpath -Wl,/usr/local/lib
./.libs/libgd.so: undefined reference to `cos'
./.libs/libgd.so: undefined reference to `sin'
collect2: ld returned 1 exit status
make: *** [annotate] Error 1
make: Leaving directory `/home/clint/docs/projects/radius/modules/gd-2.0.11'
make: *** [install-recursive] Error 1
Thanks in advance for any leads you have!
] c l i n t [ * ] s u l i s [