1 of 1 people found this helpful
Not all standard library functions are available in the chip (because they would not have fit in the limited ROM and RAM available in the chip). You could try adding specific libraries to you application, add something like this to your makefile.mk:
EXTRA_LD_FLAGS += -lgcc
EXTRA_LD_FLAGS += -lm
but I suspect not all libraries can be added. Time functions are a part of the standard library (libc.a), and these are not fully implemented on this platform. BLE Time service is recommended instead, see Apps/watch sample application.
not really, it's possible for a project to have a rtc element, a desire to use time.h & not be a project that provides the Current Time Service
Tried adding either of those lines to the makefile.mk found within my App/project Directory & both cause linking errors. Do I have the right makefile? Are there other changes I should make?
1. Yes you do have the correct make file
2. libc cannot be added because it has other dependencies that would not have fit in the ROM/RAM
3. You will need to find alternative methods to implement the functions that you need in time.h.
Hope this helps.