Getting this error message " undefined reference to `atan'" and "The command 'arm-none-eabi-gcc.exe' failed with exit code '1'."

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi, I am doing a project with PSoC 4200.And using PSoC creator 4.1. I am getting this error message from my program and as far i know , i didn't make any mistake during the writing this program. I include the all the library i need

#include "project.h"

#include <stdio.h>

#include <stdlib.h>

#include <math.h>

But i dont know why its showing those error.please help me to solve the problem.

Thanks,

Md. Asif Reza.

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

In Project -> Build Settings -> ARM ... -> Linker -> General ->Additional Libraries

add the term "m" (without the quotes. This will add mlib to your project.

Happy coding

Bob

View solution in original post

1 Reply
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

In Project -> Build Settings -> ARM ... -> Linker -> General ->Additional Libraries

add the term "m" (without the quotes. This will add mlib to your project.

Happy coding

Bob