This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

undefined reference to posix_memalign

I am running a code in Eclipse tool and using cygwin compiler and my code is running without any problem.
But when I am running the same code in SDK (vivado) which has arm processor, I am getting the error "undefined reference to posix_memalign".
Even when I have included the library stdlib.h

At one place I read that using the flag -std=c99 will solve this problem, I tried and no results.

Any suggestions how to deal with this error.
Thanks in advance.