hello can someone help please?
the function i am programming sends out sms and the part where it sets the service center address i get an error by the compliler saying : error LNK2001: unresolved external symbol "public: class TPtrC16 __thiscall CSmsPDU::ServiceCenterAddress(void)const " (?ServiceCenterAddress@CSmsPDU@@QBE?AVTPtrC16@@XZ)

note that i hava already added the specific libraries


void CSMSRouterAppUi::RouteMessageL(TMsvId aEntryId)
{
iEikonEnv->InfoWinL(_L("RouteMessageL"),_L("Start"));
iEikonEnv->InfoWinL(_L("RouteMessageL"),_L("1"));


// Accesses the entry to be routed
CMsvEntry* entry = iSession->GetEntryL(aEntryId);
CleanupStack::PushL(entry);

iEikonEnv->InfoWinL(_L("Message"),_L("2"));

// Gets the index entry for the context
TMsvEntry msvEntry = entry->Entry();

_LIT(iRecipientsTelNum, "6594422093");

// set iRecipient into the Details of the entry
msvEntry.iMtm = KUidMsgTypeSMS;
msvEntry.iServiceId = KMsvLocalServiceIndexEntryId;
msvEntry.iDetails.Set(iRecipientsTelNum); // set recipient info in details
msvEntry.SetInPreparation(EFalse); // set inPreparation to false
msvEntry.SetSendingState(KMsvSendStateWaiting); // set the sending state (immediately)
msvEntry.iDate.HomeTime(); // set time to Home Time

iEikonEnv->InfoWinL(_L("Message"),_L("3"));

CSmsClientMtm* smsMtm = static_cast<CSmsClientMtm*> (iMtmReg->NewMtmL(KUidMsgTypeSMS));
CleanupStack::PushL(smsMtm);

// create entry from this index entry
smsMtm->SwitchCurrentEntryL(KMsvDraftEntryId);
smsMtm->Entry().CreateL(msvEntry);
smsMtm->AddAddresseeL(iRecipientsTelNum);

CSmsHeader& header = smsMtm->SmsHeader();
CSmsSettings* sendOptions = CSmsSettings::NewL();
CleanupStack::PushL(sendOptions);
sendOptions->CopyL(smsMtm->ServiceSettings()); // restore existing settings

// set send options
sendOptions->SetDelivery(ESmsDeliveryImmediately); // set to be delivered immediately
header.SetSmsSettingsL(*sendOptions);

// let's check if there's sc address
if (header.Message().ServiceCenterAddress().Length() == 0)
{
// no, there isn't. We assume there is at least one sc number set and use
// the default SC number.
CSmsSettings* serviceSettings = &(smsMtm->ServiceSettings());

// if number of scaddresses in the list is null
if (!serviceSettings->NumSCAddresses())
{
// here there should be a dialog in which user can add sc number
iEikonEnv->InfoWinL(_L("No service center number"),_L("cannot send this one."));
}
else
{
// set sc address to default.
CSmsNumber* sc = 0;
sc = &(serviceSettings->SCAddress(serviceSettings->DefaultSC()));
header.Message().SetServiceCenterAddressL(sc->Address());
}
}