Aug 04, 2019
07:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 04, 2019
07:32 PM
I get an error when compiling a Math functions with an argument such as y=sin(x) using a PSoC 5LP chip.
prj.M0120: Build error: undefined reference to `sin`.
Is there a way around this?
Mike
Solved! Go to Solution.
Labels
- Labels:
-
PSoC 5 Architecture
-
PSoC 5LP
1 Solution
Attachments are accessible only for community members.
Aug 04, 2019
08:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 04, 2019
08:08 PM
Hi,
I needed add m in both compiler and linker config
Attached is a trivial sin value print out program using CY8CKIT-059, just for compiling reference.
moto
2 Replies
Attachments are accessible only for community members.
Aug 04, 2019
08:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 04, 2019
08:08 PM
Aug 07, 2019
04:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 07, 2019
04:30 PM
Thanks Moto that solved the problem. It worked with just adding the m to the Linker Config.
Thanks again, Mike