Link to home
Start Free TrialLog in
Avatar of ClintSulis
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/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 [
ASKER CERTIFIED SOLUTION
Avatar of Takashaka
Takashaka

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ClintSulis
ClintSulis

ASKER

Nice, that was it, you da man Tak!
Thanks, that fixed it, you da man Tak!