undefined reference to `sqrt' collect2: ld returned 1 exit status
Solution:Cause of this error is by default math.h library has not included. So compile the c code in the following way:[root@localhost ~]# gcc abc.c -lmNote: Here abc.c is name of any c code file.
No comments:
Post a Comment