trig functions

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm trying to perform trig functions using the avr gcc and I get an undefined reference error.
Has anybody been able to use any of the functions defined in math.h?

thanks
-jeff

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If anyone is interested, I found the solution.
You need to add -lm to the linker options to include the math libraries.

-jeff

admin's test signature