?
Solved

Compiling GD : Undefined Reference to 'COS'

Posted on 2003-03-27
3
Medium Priority
?
349 Views
Last Modified: 2008-03-17
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
Comment
Question by:ClintSulis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Accepted Solution

by:
Takashaka earned 300 total points
ID: 8220132
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
 

Author Comment

by:ClintSulis
ID: 8220137
Nice, that was it, you da man Tak!
0
 

Author Comment

by:ClintSulis
ID: 8220139
Thanks, that fixed it, you da man Tak!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question