ClintSulis
asked on
Compiling GD : Undefined Reference to 'COS'
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[1]: *** [annotate] Error 1
make[1]: Leaving directory `/home/clint/docs/projects /radius/mo dules/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 [
[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[1]: *** [annotate] Error 1
make[1]: Leaving directory `/home/clint/docs/projects
make: *** [install-recursive] Error 1
Thanks in advance for any leads you have!
] c l i n t [ * ] s u l i s [
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, that fixed it, you da man Tak!
ASKER