ruth
New Contributor
5 years agomath library in Intel Monitor Program
Hi, I would like to know how to include the math.h library in a simple c program to be played in the DE1-SoC computer based in Nios II (I need the sin function to create a musical note)
According to the laboratory exercise 8 of emmbedded systems, I have to add -lm at the additional compiler flag but I get the error:
"undefined reference to sin.."
what make me suspect that the math library is not being included in the program
what can I do?
thank you