Please note: We are aware of an issue affecting replies on the Arm Community forums, which may not be loading as expected.

We apologize for any inconvenience and appreciate your patience while we investigate and work to resolve the issue.

Thank you for your understanding.


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.