Help needed Using C File In Project, iPhone
- by Stumf
Hello all,
I am new to all this, but here goes:
There is an apple file that I would like to use parts of for my app. It is called BatteryTimeRemaining.c.
http://www.opensource.apple.com/source/PowerManagement/PowerManagement-211/pmconfigd/BatteryTimeRemaining.c
I want to be able to use some of the calculations in it, the problem being I don't to know how to add and use it properly. I get countless errors e.g. undeclared: first use of this function.
Do I need to add all the header files which are included in the .c file? Do I compile it and then add?
Many thanks,
Stuart