- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have a strange problem when building the code I found (see link below or added file). So now my problem: I try to use the functions atan2f and sqrt. I know that to use these I have to include "math.h" which I did, but when I build the code the following errors appear:
Build error: undefined reference to `atan2f'
Build error: undefined reference to `sqrt'
Can someone help meor guide me in a derection where I can solve this?
PS: the code from the link is made for the Psoc 4, but I use the Psoc 5PL and made the necessary adjustments to make it 'work'.
Solved! Go to Solution.
- Labels:
-
PSOC5 LP MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In creator ->project->build settings->arm_>linker->additional libraries
add "m" to include mlib
Happy coding
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In creator ->project->build settings->arm_>linker->additional libraries
add "m" to include mlib
Happy coding
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thx for the solution and quick reply