c++ - Vivado SDK doesn't recognize the functions inside #include "math.h" -
i wrote simple project in vivado sdk in order test hw-platform developed in vivado. problem the sdk doesn't recognise sin() function. i've included "math.h" library without error, program recognise library sin() function included (i checked own).
i obtain error:
c:\path...\debug/../src/helloworld.c: undefined reference `sin' collect2.exe: error: ld returned 1 exit status
i've read answer in here , general useless solve problem. it's clear there problem of library it's not clear how solve in vivado sdk.
i'm working with: os: windows 7
vivado: 2016.1
vivado sdk: 2016.1
any solution???
as explain here in xilinx forum, can add in arm v7 gcc liker “m” value.
in order set correctly value navigate toolbox in project -> properties -> c/c++ build -> settings -> arm v7 gcc linker -> libraries -> libraries(-l) -> add… , here can add value “m”. valid mathematical function want use in project.
you should see in end.
Comments
Post a Comment