Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

undefined reference to posix_memalign in Arm

Status
Not open for further replies.

shubham kumar

Member level 3
Joined
Sep 11, 2014
Messages
59
Helped
1
Reputation
2
Reaction score
1
Trophy points
8
Location
bangalore
Activity points
511
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.
 

"undefined reference" is a linker error referring to missing object code rather than header file. None of the default or explicitly linked libraries contains the function.
 
Thank you @FvM.
Can you help me which flag do I need to include so that it'll link that code.
I tried -stdlib, -stdlib=legacy_stdlib, -fno_builtin, -std=c99, -std=c11 etc .. but didnt got any success
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top