Hi all,
i'm using eclipse to make some simple projects with a stm32f303 discovery.
i want to use the atan function or something similar but when i include math.h and use atan, i have the following error:
/home/myName/workspaceChibios/CompassTest//main.c:184: undefined reference to `atan'
I have read about using -lm or add an "m" into libraries, but i cant to that by project property.
Any ideas?
Thanks
Problem with eclipse and atan
Moderators: RoccoMarco, lbednarz, utzig, tfAteba, barthess
Re: Problem with eclipse and atan
I suppose you are using Eclipse with linux, and you are using the ChibiOS makefiles, right?
You should add '-lm' to the makefile to the DLIBS section of the Makefile. It should work then.
You should add '-lm' to the makefile to the DLIBS section of the Makefile. It should work then.
Who is online
Users browsing this forum: No registered users and 53 guests