Help ! Unresolved symbol link error

Login to reply to this topic.
Fri, 2006-01-06 15:05
Joined: 2006-01-06
Forum posts: 3
Iam gettng the following error while compiling a code to get te imie number & cell id from te phone.I have sdk fp2 installed.I have included the gsmbas.lib in te epoc32/include directory and etelbgsm.h,etel.h are also present....Still am getting te following error ...Kindly help...
Sreejith

--------------------------------------------------------------------------
Compiling...
Getimei.cpp
Linking...
Getimei.obj : error LNK2019: unresolved external symbol "public: __thiscall MBasicGsmPhoneNetwork::TNetworkInfo::TNetworkInfo(void)" (??0TNetworkInfo@MBasicGsmPhoneNetwork@@QAE@XZ) referenced in function "public: __thiscall MBasicGsmPhoneNetwork::TCurrentNetworkInfo::TCurrentNetworkInfo(void)" (??0TCurrentNetworkInfo@MBasicGsmPhoneNetwork@@QAE@XZ)
Getimei.obj : error LNK2019: unresolved external symbol "public: virtual int __thiscall RBasicGsmPhone::GetSignalStrength(long &)const " (?GetSignalStrength@RBasicGsmPhone@@UBEHAAJ@Z) referenced in function "void __cdecl doExampleL(void)" (?doExampleL@@YAXXZ)
Getimei.obj : error LNK2019: unresolved external symbol "public: virtual int __thiscall RBasicGsmPhone::GetCurrentNetworkInfo(struct MBasicGsmPhoneNetwork::TCurrentNetworkInfo &)const " (?GetCurrentNetworkInfo@RBasicGsmPhone@@UBEHAAUTCurrentNetworkInfo@MBasicGsmPhoneNetwork@@@Z) referenced in function "void __cdecl doExampleL(void)" (?doExampleL@@YAXXZ)
Getimei.obj : error LNK2019: unresolved external symbol "public: __thiscall RBasicGsmPhone::RBasicGsmPhone(void)" (??0RBasicGsmPhone@@QAE@XZ) referenced in function "void __cdecl doExampleL(void)" (?doExampleL@@YAXXZ)
\Symbian\8.0a\S60_2nd_FP2\EPOC32\RELEASE\WINS\UREL\GETIMEI.EXE : fatal error LNK1120: 4 unresolved externals
--------------------------------------------------------------------------

Fri, 2006-01-06 20:58
Joined: 2004-07-10
Forum posts: 364
Re: Help ! Unresolved symbol link error
Obvious questin - are you linking to the correct library in your .mmp?
Sat, 2006-01-07 07:59
Joined: 2006-01-06
Forum posts: 3
Re: Help ! Unresolved symbol link error
Yeah The library required ( as far as i know,pls correct if itz not the lib) is gsmbas.lib...i have included that too...
Sat, 2006-01-07 11:12
Joined: 2006-01-06
Forum posts: 3
Re: Help ! Unresolved symbol link error
Hav got it running on the emulator now.. but i cant sreate an armi urel as it shows the following error.Is there a way out?(i hav copied the etelbgsm.lib in release/armi...)

-------------------------------------------------------------------------------------
..\..\EPOC32\BUILD\SYMBIAN\8.0A\S60_2ND_FP2\SERIES60EX\GEIMEI\GETIMEI\ARMI\UREL\GETIMEI.in(../../EPOC32/BUILD/SYMBIAN/8.0A/S60_2ND_FP2/SERIES60EX/GEIMEI/GETIMEI/ARMI/UREL/GETIMEI.o)(.text+0x150):Getimei.cpp: undefined reference to `RBasicGsmPhone::RBasicGsmPhone(void)'
..\..\EPOC32\BUILD\SYMBIAN\8.0A\S60_2ND_FP2\SERIES60EX\GEIMEI\GETIMEI\ARMI\UREL\GETIMEI.in(../../EPOC32/BUILD/SYMBIAN/8.0A/S60_2ND_FP2/SERIES60EX/GEIMEI/GETIMEI/ARMI/UREL/GETIMEI.o)(.text+0x1a0):Getimei.cpp: undefined reference to `MBasicGsmPhoneNetwork::TNetworkInfo::TNetworkInfo(void)'
..\..\EPOC32\BUILD\SYMBIAN\8.0A\S60_2ND_FP2\SERIES60EX\GEIMEI\GETIMEI\ARMI\UREL\GETIMEI.in(../../EPOC32/BUILD/SYMBIAN/8.0A/S60_2ND_FP2/SERIES60EX/GEIMEI/GETIMEI/ARMI/UREL/GETIMEI.o)(.text+0x1ac):Getimei.cpp: undefined reference to `RBasicGsmPhone::GetCurrentNetworkInfo(MBasicGsmPhoneNetwork::TCurrentNetworkInfo &) const'
..\..\EPOC32\BUILD\SYMBIAN\8.0A\S60_2ND_FP2\SERIES60EX\GEIMEI\GETIMEI\ARMI\UREL\GETIMEI.in(../../EPOC32/BUILD/SYMBIAN/8.0A/S60_2ND_FP2/SERIES60EX/GEIMEI/GETIMEI/ARMI/UREL/GETIMEI.o)(.text+0x1cc):Getimei.cpp: undefined reference to `RBasicGsmPhone::SignalStrengthNotification(TRequestStatus &, long &)'
make[1]: *** [..\..\EPOC32\RELEASE\ARMI\UREL\GETIMEI.EXE] Error 1
make: *** [TARGETGETIMEI] Error 2
make -s -r -f "\Symbian\8.0a\S60_2nd_FP2\EPOC32\BUILD\SYMBIAN\8.0A\S60_2ND_FP2\SERIES60EX\GEIMEI\GETIMEI\ARMI\GETIMEI.ARMI" UREL
make -r -f "\Symbian\8.0a\S60_2nd_FP2\EPOC32\BUILD\SYMBIAN\8.0A\S60_2ND_FP2\SERIES60EX\GEIMEI\ARMI.make" FINAL CFG=UREL VERBOSE=-s

Build log was saved at "file://d:\Symbian\8.0a\S60_2nd_FP2\Series60Ex\geimei\Release\BuildLog.htm"
GETIMEI - 0 error(s), 0 warning(s)

Wed, 2006-01-11 12:32
Joined: 2005-10-10
Forum posts: 18
Re: Help ! Unresolved symbol link error
HI,

r u using any external dll in your project bcoz i used to get this errors when i used third party dll and i have fixed it. if ur using the third party dll let me know..
Thu, 2006-01-12 05:47
Joined: 2004-11-07
Forum posts: 10
Re: Help ! Unresolved symbol link error
Hi Sreejith,

From the Series 60 2nd Edition SDK (FP2) docs:

Quote
The Advanced GSM API is completely removed and replaced by the Etel multimode API (etelmm.dll, etelmm.h).

Etel multimode is described in the Developer Library in Using Multimode ETel and product documentation at common\generic\telephony\etelmm\Documentation\.

Migration advice is available in generic\telephony\etelmm\Documentation\How To Upgrade to Multimode ETel.doc

I guess your problem is occuring because the APIs you're referencing are being phased out.

You'll probably have to look at the ETel framework.

Good luck.

Regards,
Bob Andrews
  • Login to reply to this topic.