I'm writing a homebrew project in C, and including math.h just doesn't work for me. I have "#include <math.h>" in there, but when I try to use a function from it like cos() or sin() I get an error while trying to build it that looks like this:
This is the line mentioned in the above.d:/devkitpro/devkitarm/bin/../lib/gcc/arm-none-eabi/11.1.0/../../../../arm-none-eabi/bin/ld.exe: C:/Users/rgt/Documents/C_Language/NDS_Project/source/main.c:84: undefined reference to `sin'
collect2.exe: error: ld returned 1 exit status
Does anyone know what could be wrong? I have no idea how to fix this and get math.h working in my project.double Y_Location = radius * sin(Convert);