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?
admin's test signature
If anyone is interested, I found the solution.
You need to add -lm to the linker options to include the math libraries.
© 2020 Microchip Technology Inc.