I got the gsmbas.lib file in SDK 1st Edition and i copied it to my SDK 2nd Edition. The program is now running successfully on the emulator as well as my N70 device. The code for retrieving cell id and location area code in 2nd Edition is:
MBasicGsmPhoneNetwork::TCurrentNetworkInfo ni ;
phone.GetCurrentNetworkInfo( ni ) ;
TInt cellId = ni.iCellId;
//Location Area Code
TInt locationareacode = ni.iLocationAreaCode;
The above code gives the cellid in cellidrepr and location area code in locationareacoderepr.
The header files required are etel.h,etelbgsm.h.
The library files are etel.lib and gsmbas.lib.