Problem with HAL::Get()
| Thu, 2007-10-11 15:42 | |
|
Hi, Im new to symbina development. Im trying to get the battery info thru HAL::Get() method my code snippet is as follows ================================ The include block is #include hal.h i linked against Im getting the following error at compilation Im trying this code in emulator with s60 2nd fp1. also i tried TUid battStatus; |
|






Forum posts: 1156
The link error is weird, the library to link against is indeed hal.lib.
You might have to re-import your mmp file so your build environment really adds the library.
You didn't say what environment you try to use.
Building from command line, you should just need to add it to the mmp though.
About the second error, just change TUint battstatus; to TInt battstatus; and it should work.
Forum posts: 51
It must be TInt , not TUint
Forum posts: 4
Infact i tried it as TInt and not TUInt.
Im using carbide.c++ v1.1. As u said i updated the mmp file. To my suprise, once i update it is deleting what i have added (LIBRARY) to .mmp
it is commented as follows
*& START_LINKAGE_INFORMATION &*/
// NOTE: Content in this section is auto-generated, any changes are overwritten in the next update process.
and the error still exists. Im unable to link.