Hi all ! I'm getting "undefined reference to sin" for a simple program:
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
The compiler is : arm-linux-gnueabi-gcc Thanks in advance.
undefined reference for sin, cos etc.Hi all ! I'm getting "undefined reference to sin" for a simple program:
The compiler is : arm-linux-gnueabi-gcc Thanks in advance. Perhaps the link option -lm helps? Thanks a lot sir, It compiled straight away with that option. I was trying it for 2 days.
Guest
#1917114
hello ! I have the same problem, but I have just started to program with C and I have not undestood your answer, insert -lm... what I must do to compilate good my program ? sorry for my bad english !!! thank you That depends on how you build your program (which IDE or a makefile?). ReplyPlease log in before posting. |