在程序中用到的 cos和sin函数,并且已经#include <math.h>库,但编译还是报错:
undefined reference to 'cos'
undefined reference to 'sin'
在XILINX查到了解决方法:
在工程上右键–>Properties,弹出如下窗口,并添加math库
问题解决。
在程序中用到的 cos和sin函数,并且已经#include <math.h>库,但编译还是报错:
undefined reference to 'cos'
undefined reference to 'sin'
在XILINX查到了解决方法:
在工程上右键–>Properties,弹出如下窗口,并添加math库
问题解决。