This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,all! I am a new in Davince field.Currently I am working on immigrating the program(by c) to the DM6446 by xdc tools. I have to use the math.h in the program.When I compilered it, it shows that undefined reference 'sin'.
The c source for the function like:
#include <stdlib.h>
#include <math.h>
int main() { double a = sin (30.0); }
I used the xdc tools to compile. It says undefined reference 'sin'.
And I do have configurate the path which xdc needed.
Is any one body can provide better solution. your help will greatly appreciated. waiting for your messages and help。
Hi,
Are you trying to build this code for ARM (probably via command line on Linux host) or DSP side (probably via CCS)?
I am trying to build this code for ARM.As you say I build this code via command line on linux host. Using the XDC(eXpress DSP Compoent) tools.
I suggest that you can check out "math.h" and find that whether "sin" function is existed. Yesterday I found a "math.h" which did not include "floor" or "ceil" function. So pls. check it out.
Hi, I met same issue as yours. Could you please tell me where to add -lm compiler option? in makefile or anywhere? Thanks!