Help needed Using C File In Project, iPhone

Posted by Stumf on Stack Overflow See other posts from Stack Overflow or by Stumf
Published on 2010-02-08T17:08:23Z Indexed on 2010/04/11 16:13 UTC
Read the original article Hit count: 363

Filed under:
|
|
|

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

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c