- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Following the directions for using the math.h library, (using PSoC 4200DS) and adding #include <math.h> to the "main.c" file and the project "generated source" project name .c , I go through the clean and build; the #include <math.h> header disapears and get the error message "incompatible implicit declaration of built-in function 'pow',
and implicit declaration of function 'pow' [-Wimplicit-function-declaration],
does anyone have an answer?
Kind regards
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Right click on your project > Build Settings > Linker > Additional Libraries and add "m" there. I think you missed adding this. You can get more information on this in the KBA here: Using Math Functions in PSoC® Creator™ for the PSoC 4 or PSoC 5LP GCC Compiler – KBA93076
Let me know your observations
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Right click on your project > Build Settings > Linker > Additional Libraries and add "m" there. I think you missed adding this. You can get more information on this in the KBA here: Using Math Functions in PSoC® Creator™ for the PSoC 4 or PSoC 5LP GCC Compiler – KBA93076
Let me know your observations
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Dheeraj, Yes, I did add the m to the linker library already, do I require Keil to be activated to perform this action?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Note that if you make changes to the files in the Generated Source folder, you cannot do a Clean and Build. It is going to overwrite your changes. in the build settings, you can set the Skip Code Generation option to True to suppress the files in the Generated Source from being overwritten as shown in the image below:
Can you please let me know why you are editing the Generated Source files? What is your requirement?
Regards,
Dheeraj