• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 377
  • Last Modified:

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 [
0
ClintSulis
Asked:
ClintSulis
  • 2
1 Solution
 
TakashakaCommented:
I have had this problem compiling GD on systems with no PNG, JPEG, or TT libraries stragely enough.  Make sure you at least GD sensed PNG and JPEG support, and i bet it compiles just fine...

-Tak
0
 
ClintSulisAuthor Commented:
Nice, that was it, you da man Tak!
0
 
ClintSulisAuthor Commented:
Thanks, that fixed it, you da man Tak!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now