mdtaqi
asked on
Linking errors in Embedded VC
Hi experts,
need ur help.
iam working on Embedded VC-4. Iam getting linking errors while building the code.
Let me give u some more info abt it. the code that iam wrking on was running successfully when v bought it frm other company( they used EVC -3). in here we are using some third party static libraries(.lib files) for carrying our some task.the linking errors that iam getting are referencing the functions that r actually in these lib files. They are giving it as "Unresolved external symbols".
I have included the lib files in project settings->link->input , tools->options->directorie s, added it to the project thru file view, & even copied the lib files to the debug folders. still its not getting thru.
wht shd i do, pleas help me out.
awaiting ur response.
ThanQ.
need ur help.
iam working on Embedded VC-4. Iam getting linking errors while building the code.
Let me give u some more info abt it. the code that iam wrking on was running successfully when v bought it frm other company( they used EVC -3). in here we are using some third party static libraries(.lib files) for carrying our some task.the linking errors that iam getting are referencing the functions that r actually in these lib files. They are giving it as "Unresolved external symbols".
I have included the lib files in project settings->link->input , tools->options->directorie
wht shd i do, pleas help me out.
awaiting ur response.
ThanQ.
ASKER
Hi, thanX for ur response.
i have already added the path to Additional library path. still iam getting the errors.As i said the code was running successfully when we bought it. i havent touched it. so i dont think theres a question of functions being called with wrong parameters.the lib files are same & also is the code. by the way.. are the lib files dependent on the os that they are built on?.Iam using XP , i dont know on which os was that code was written.
one of the 3rd party libs is imgdecmp.lib provided by microsoft.i am getting the following errors when linking to it:
ScriptCtrlFactory.lib(imag edecmp.obj ) : error LNK2019: unresolved external symbol __imp__FreeLibrary@4 referenced in function _GetHalftonePalette
ScriptCtrlFactory.lib(imag edecmp.obj ) : error LNK2019: unresolved external symbol __imp__GetProcAddressW@8 referenced in function _GetHalftonePalette
ScriptCtrlFactory.lib(imag edecmp.obj ) : error LNK2019: unresolved external symbol _MessageBoxW@16 referenced in function _GetHalftonePalette
ScriptCtrlFactory.lib(imag edecmp.obj ) : error LNK2019: unresolved external symbol _LoadLibraryW@4 referenced in function _GetHalftonePalette
iam getting similar errors when linking to the other lib files too.
Please tell me how to resolve these unresolved external symbols :).
awaiting ur response, ThanQ,
i have already added the path to Additional library path. still iam getting the errors.As i said the code was running successfully when we bought it. i havent touched it. so i dont think theres a question of functions being called with wrong parameters.the lib files are same & also is the code. by the way.. are the lib files dependent on the os that they are built on?.Iam using XP , i dont know on which os was that code was written.
one of the 3rd party libs is imgdecmp.lib provided by microsoft.i am getting the following errors when linking to it:
ScriptCtrlFactory.lib(imag
ScriptCtrlFactory.lib(imag
ScriptCtrlFactory.lib(imag
ScriptCtrlFactory.lib(imag
iam getting similar errors when linking to the other lib files too.
Please tell me how to resolve these unresolved external symbols :).
awaiting ur response, ThanQ,
For errors 1,2,4 you need to link agains Coredll.lib.
For 3, Msgbox.lib.
For 3, Msgbox.lib.
ASKER
Hi, thanX for ur response & sorry for bothering u again.
when i am including coredll.lib, along with the previous errors iam getting the following ones.
uafxwced.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in coredll.lib(COREDLL.dll)
uafxwced.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in coredll.lib(COREDLL.dll)
uafxwced.lib(afxmem.obj) : warning LNK4006: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in coredll.lib(COREDLL.dll); second definition ignored
uafxwced.lib(afxmem.obj) : warning LNK4006: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in coredll.lib(COREDLL.dll); second definition ignored
Iam also pasting here the other errors that iam getting when using the 3rd party dlls ,namely "radvh323.lib" & "g723lib.lib" .
--------------------------
H323Call.obj : error LNK2019: unresolved external symbol _cmCallDrop referenced in function "public: virtual __thiscall CH323call::~CH323call(void
H323phone.obj : error LNK2001: unresolved external symbol _cmCallDrop
H323phone.lib(H323conf.obj
H323Call.obj : error LNK2019: unresolved external symbol _cmCallMake referenced in function "public: int __thiscall CH323call::callMakeNewCall
H323Call.obj : error LNK2019: unresolved external symbol _cmCallSetParam referenced in function "public: int __thiscall CH323call::callMakeNewCall
H323phone.obj : error LNK2001: unresolved external symbol _cmCallSetParam
H323phone.lib(H323conf.obj
H323Call.obj : error LNK2019: unresolved external symbol _cmCallNew referenced in function "public: int __thiscall CH323call::callMakeNewCall
H323Call.obj : error LNK2019: unresolved external symbol _cmCallGetParam referenced in function "public: int __thiscall CH323call::callCallDisconn
H323Call.obj : error LNK2019: unresolved external symbol _cmCallClose referenced in function "public: int __thiscall CH323call::callCallCheckGa
H323phone.lib(H323conf.obj
H323Call.obj : error LNK2019: unresolved external symbol _cmCallGetCallingPartyId referenced in function "public: int __thiscall CH323call::callPrepareInCa
Z)
H323Call.obj : error LNK2019: unresolved external symbol _cmCallGetCalledPartyId referenced in function "public: int __thiscall CH323call::callPrepareInCa
)
H323channel.obj : error LNK2019: unresolved external symbol _rtpSetEventHandler referenced in function "protected: int __thiscall CH323RtpSession::rtpsessio
H323channel.obj : error LNK2019: unresolved external symbol _rtcpOpen referenced in function "protected: int __thiscall CH323RtpSession::rtpsessio
H323channel.obj : error LNK2019: unresolved external symbol _rtpGetSSRC referenced in function "protected: int __thiscall CH323RtpSession::rtpsessio
H323channel.obj : error LNK2019: unresolved external symbol _rtpOpen referenced in function "protected: int __thiscall CH323RtpSession::rtpsessio
H323channel.obj : error LNK2019: unresolved external symbol _rtcpClose referenced in function "protected: void __thiscall CH323RtpSession::rtpsessio
H323channel.obj : error LNK2019: unresolved external symbol _rtpClose referenced in function "protected: void __thiscall CH323RtpSession::rtpsessio
H323channel.obj : error LNK2019: unresolved external symbol _cmChannelDrop referenced in function "public: virtual __thiscall CH323channel::~CH323channe
H323phone.lib(H323conf.obj
H323channel.obj : error LNK2019: unresolved external symbol _cmChannelOpen referenced in function "protected: int __thiscall CH323channel::channelOpenO
@@Z)
H323channel.obj : error LNK2019: unresolved external symbol _cmChannelSetRTCPAddress referenced in function "protected: int __thiscall CH323channel::channelOpenO
BUHCALL__@@@Z)
H323channel.obj : error LNK2019: unresolved external symbol _cmChannelNew referenced in function "protected: int __thiscall CH323channel::channelOpenO
@Z)
H323channel.obj : error LNK2019: unresolved external symbol _rtpSetRemoteAddress referenced in function "public: void __thiscall CH323channel::channelSetRt
@Z)
H323channel.obj : error LNK2019: unresolved external symbol _rtcpSetRemoteAddress referenced in function "public: void __thiscall CH323channel::channelSetRt
XIG@Z)
H323channel.obj : error LNK2019: unresolved external symbol _cmChannelClose referenced in function "public: void __thiscall CH323channel::channelState
H323channel.obj : error LNK2019: unresolved external symbol _cmChannelAnswer referenced in function "public: void __thiscall CH323channel::channelState
N__@@@Z)
H323channel.obj : error LNK2019: unresolved external symbol _cmChannelSetFlowControlTo
l@@QAEXPBUHCHAN__@@@Z)
H323channel.obj : error LNK2019: unresolved external symbol _cmChannelSetAddress referenced in function "public: void __thiscall CH323channel::channelState
HCHAN__@@@Z)
H323phone.obj : error LNK2019: unresolved external symbol _rtpRead referenced in function "void __cdecl eventRtpPacketHandler(stru
H323phone.obj : error LNK2019: unresolved external symbol _cmEnd referenced in function "public: int __thiscall CH323phone::RunRadvisionSt
H323phone.obj : error LNK2019: unresolved external symbol _rtpEnd referenced in function "public: int __thiscall CH323phone::RunRadvisionSt
H323phone.obj : error LNK2019: unresolved external symbol _rtcpEnd referenced in function "public: int __thiscall CH323phone::RunRadvisionSt
H323phone.obj : error LNK2019: unresolved external symbol _seliEnd referenced in function "public: int __thiscall CH323phone::RunRadvisionSt
H323phone.obj : error LNK2019: unresolved external symbol _seliSelect referenced in function "public: int __thiscall CH323phone::RunRadvisionSt
H323phone.obj : error LNK2019: unresolved external symbol _seliCallOn referenced in function "public: int __thiscall CH323phone::RunRadvisionSt
H323phone.obj : error LNK2019: unresolved external symbol _rtcpInit referenced in function "public: int __thiscall CH323phone::RunRadvisionSt
H323phone.obj : error LNK2019: unresolved external symbol _rtpInit referenced in function "public: int __thiscall CH323phone::RunRadvisionSt
H323phone.obj : error LNK2019: unresolved external symbol _seliInit referenced in function "public: int __thiscall CH323phone::RunRadvisionSt
H323phone.obj : error LNK2019: unresolved external symbol _cmSetChannelEventHandler referenced in function "public: int __thiscall CH323phone::RunRadvisionSt
H323phone.obj : error LNK2019: unresolved external symbol _cmSetControlEventHandler referenced in function "public: int __thiscall CH323phone::RunRadvisionSt
H323phone.obj : error LNK2019: unresolved external symbol _cmSetCallEventHandler referenced in function "public: int __thiscall CH323phone::RunRadvisionSt
H323phone.obj : error LNK2019: unresolved external symbol _cmSetGenEventHandler referenced in function "public: int __thiscall CH323phone::RunRadvisionSt
H323phone.obj : error LNK2019: unresolved external symbol _cmInitialize referenced in function "public: int __thiscall CH323phone::RunRadvisionSt
H323phone.obj : error LNK2019: unresolved external symbol _cmCallSendUserInput referenced in function "private: int __thiscall CH323phone::SendUserInputM
PBUHCALL__@@PADHE@Z)
H323phone.obj : error LNK2019: unresolved external symbol _cmUserInputBuildAlphanume
one@@AAEHPBUHCALL__@@PADHE
H323phone.obj : error LNK2019: unresolved external symbol _cmUserInputGet referenced in function "public: void __thiscall CH323phone::CallUserInputP
H323phone.obj : error LNK2019: unresolved external symbol _cmUserInputGetDetail referenced in function "public: void __thiscall CH323phone::CallUserInputP
H323phone.obj : error LNK2019: unresolved external symbol _cmCallAnswer referenced in function "public: void __thiscall CH323call::callAnswerThisC
H323phone.lib(H323conf.obj
terSlave@@YAHPBUHAPPCALL__
H323phone.lib(H323conf.obj
MediaLoopStatus@@YAHPBUHAP
H323phone.lib(WvDevMgr.obj
und@CWvDevMgr@@AAEXIGPAUIp
H323phone.lib(WvDevMgr.obj
AUwavehdr_tag@@PAUIppG723A
H323phone.lib(WvDevMgr.obj
vMgr@@AAEXPAUwavehdr_tag@@
H323phone.lib(WvDevMgr.obj
AEXPAUwavehdr_tag@@PAUIppG
H323phone.lib(WvDevMgr.obj
H323phone.lib(WvDevMgr.obj
emulatorDbg/UGotACall_CE.e
Error executing link.exe.
--------------------------
The symbols(functions) that its saying as unresolved are there in the respective lib files.
pls tell me wht to do now.
awaiting ur response.
thanQ,
ASKER
Hello experts,
this is urgent to me. pls help me out to know how to resolve these errors.at least tell me are the lib files operating system or environment dependent?. is it y iam getting these errors?.
wht cud be the reason that the libraries are not identified by the linker even after adding 'em properly to the project.
hope to get response.
thanQ.
this is urgent to me. pls help me out to know how to resolve these errors.at least tell me are the lib files operating system or environment dependent?. is it y iam getting these errors?.
wht cud be the reason that the libraries are not identified by the linker even after adding 'em properly to the project.
hope to get response.
thanQ.
Do the 3rd party libs link with MFC static or dynamic?
You need to link your project the same with MFC.
You need to link your project the same with MFC.
ASKER
Hi, thanX for replying ,
I have no idea of these 3rd party libs. they are there & i have to use it. i dont even have any docuentation abt 'em. so i dont know if they use MFC shared or not. is there any way to know it ?. but initially when my projects had the settings of "no MFC" , it gave errors ,so i set my projects to "using Mfc shared" , now they dont give any such mfc errors.
one more thing i want to know is, are libs dependent upon OS or any other environment they are built on ?????????? i have been asking it nearly every time. Pls tell me if u know.
Thanks in advance.
I have no idea of these 3rd party libs. they are there & i have to use it. i dont even have any docuentation abt 'em. so i dont know if they use MFC shared or not. is there any way to know it ?. but initially when my projects had the settings of "no MFC" , it gave errors ,so i set my projects to "using Mfc shared" , now they dont give any such mfc errors.
one more thing i want to know is, are libs dependent upon OS or any other environment they are built on ?????????? i have been asking it nearly every time. Pls tell me if u know.
Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi nonubik ,
ThanX a lot for ur help.
the errors that i was getting was due to : the libs were bulit on ARMV4 & i was running it on X86 cause my system doesnt support ARMV4.
Now all those list of errors are gone, but few more are left.
would you mind helping me further !! .
Iam using imgdecmp.lib & aygshell.lib in 2 more projects. this didnt cause problem prev when it was set to X86 , but now its also giving unresolved external errors as below.
ImgLoader.obj : error LNK2019: unresolved external symbol DecompressImageIndirect referenced in function "public: unsigned int __cdecl CImgLoader::LoadBitmapFrom ImgFile(un signed short const *,int,struct HDC__ *)" (?LoadBitmapFromImgFile@CI mgLoader@@
QAAIPBGHPAUHDC__@@@Z)
UGAC_MainFrame.obj : error LNK2019: unresolved external symbol SHCreateMenuBar referenced in function "public: int __cdecl CUGAC_MainFrame::CreateCom mandBars(s truct HINSTANCE__ *,struct HWND__ *)" (?CreateCommandBars@CUGAC_ MainFrame@ @QAAHPAUHI NSTANC
E__@@PAUHWND__@@@Z)
does this mean that these 2 libs are dependent on X86.
by the way.. is it acceptable here to post few more queries even after accepting the answer ??
ThanQ once again.
ThanX a lot for ur help.
the errors that i was getting was due to : the libs were bulit on ARMV4 & i was running it on X86 cause my system doesnt support ARMV4.
Now all those list of errors are gone, but few more are left.
would you mind helping me further !! .
Iam using imgdecmp.lib & aygshell.lib in 2 more projects. this didnt cause problem prev when it was set to X86 , but now its also giving unresolved external errors as below.
ImgLoader.obj : error LNK2019: unresolved external symbol DecompressImageIndirect referenced in function "public: unsigned int __cdecl CImgLoader::LoadBitmapFrom
QAAIPBGHPAUHDC__@@@Z)
UGAC_MainFrame.obj : error LNK2019: unresolved external symbol SHCreateMenuBar referenced in function "public: int __cdecl CUGAC_MainFrame::CreateCom
E__@@PAUHWND__@@@Z)
does this mean that these 2 libs are dependent on X86.
by the way.. is it acceptable here to post few more queries even after accepting the answer ??
ThanQ once again.
>by the way.. is it acceptable here to post few more queries even after accepting the answer ??
Not exactly. It usually needs to be another question.
But if you feel that, you can request question re-opening and point increase to the moderators (https://www.experts-exchange.com/Community_Support/)
This time I'll answer here ;)
For second error you need to link against aygshell.lib.
As for the first one, I think DecompressImageIndirect is in one of your 3rd party libs.
Not exactly. It usually needs to be another question.
But if you feel that, you can request question re-opening and point increase to the moderators (https://www.experts-exchange.com/Community_Support/)
This time I'll answer here ;)
For second error you need to link against aygshell.lib.
As for the first one, I think DecompressImageIndirect is in one of your 3rd party libs.
ASKER
Hi,
solved these errors my self.
i was actually linking to the wrong aygshell & imgdecmp libs.
to post another qstion , my accnt points have already exhausted , y dont u try solving my other question posted abt USB ,thats for 500 pts :) .
thanx any way.
bye.
solved these errors my self.
i was actually linking to the wrong aygshell & imgdecmp libs.
to post another qstion , my accnt points have already exhausted , y dont u try solving my other question posted abt USB ,thats for 500 pts :) .
thanx any way.
bye.
ASKER
Hi nonubik,
sorry to bother u again.
i know its not acceptable to post another question here.so i have posted one more question with the title "Linking errors in 3rd party libraries in Embedded VC" . its worth just 50pts. Hope it doesnt stop u from extending ur help to me ;).
the 3rd party libs are built on ARM machine.so they are doing fine in ARM mode. but i want to see the output on emulator & hence debug it. but for this i have to run it on X86 which is giving out the same linking errors again. is there any way to change the libs to be compatible with X86??
wht shd i do?? pls respond to me.
ThanX in advance.
sorry to bother u again.
i know its not acceptable to post another question here.so i have posted one more question with the title "Linking errors in 3rd party libraries in Embedded VC" . its worth just 50pts. Hope it doesnt stop u from extending ur help to me ;).
the 3rd party libs are built on ARM machine.so they are doing fine in ARM mode. but i want to see the output on emulator & hence debug it. but for this i have to run it on X86 which is giving out the same linking errors again. is there any way to change the libs to be compatible with X86??
wht shd i do?? pls respond to me.
ThanX in advance.
Then, if you still get errors, please post them, maybe the fucntions are called with wrong parameter types.