hi ,
i happened to go through this mssg about accessing address book. iam also 
writing a code to access address book. i refered the New_PIM SDK sample codes 
and wrote a code to simply open the address book and fetch the first record. 
but i got the following error:
AppMain.c:339: undefined reference to `AddrDBGetRecord'
collect2: ld returned 1 exit status
make: *** [Debug/SMS] Error 1

my code is as follows:
#include <PalmOS.h>
#include "AppResources.h"
#include "Chars.h"
#include "Resource.h"
#include <PIMExp.h>
#include <PIMExp_Rsc.h>
#include <AddressDB.h>
#include <palmOneCreators.h>


/***************************************
this is the snippet relevant to my doubt
****************************************/
char string name[30];
AddrDBRecordType addrRec;
MemHandle recH = 0;

AddrDBGetRecord(db, 1, &addrRec,recH);//error in this line.
StrCopy(string, addrRec.fields[name]);  
/******************************************/

please help me out.
thanx in advance.
sriram
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to