Forum Discussion
MapleDoi
New Contributor
6 years agocollect2.exe: error: ld returned 1 exit status Shows up during 'make'
Hi, I am using DE1-SoC. I have a C code which uses pow and sqrt from math.h library. But when i try to make file is shows this error, and says: undefined reference to 'pow' undefined reference to '...
EBERLAZARE_I_Intel
Regular Contributor
6 years agoHi,
I am unfamiliar with error you are seeing, this seems to be an uncommon issue,
Have you try some check up on the issue on Stackoverflow support? There are a lot of possibilities regarding the errors you are seeing, here are some I could find related to yours:
https://stackoverflow.com/questions/12824134/undefined-reference-to-pow-in-c-despite-including-math-h
https://stackoverflow.com/questions/27475977/c-undefined-reference-to-sqrt-even-with-lm