Click to See Complete Forum and Search --> : Linker problems on release VC7.1


Sickboy
December 17th, 2003, 05:58 AM
Hi guys,

i get a lot of linker errors when i try to release my project.
About 20 errors looks like that (with other functions):

MySDI error LNK2001: Nichtaufgelöstes externes Symbol "private: void __thiscall CMySDIView::OnUpdateMoveObject(class CCmdUI *)" (?OnUpdateMoveObject@CMySDIView@@AAEXPAVCCmdUI@@@Z)

The function onUpdateMoveObject for example i use like this:
MySDIView.cpp(50): ON_UPDATE_COMMAND_UI(ID_MOVEOBJECT, OnUpdateMoveObject)
MySDIView.cpp(268):void CMySDIView::OnUpdateMoveObject(CCmdUI* pCmdUI) {...}
MySDIView.h(86): afx_msg void OnUpdateMoveObject(CCmdUI* pCmdUI);

Can anyone please explain me which part of my code i have to check?

Thx
daSickboy

Andreas Masur
December 17th, 2003, 06:52 AM
[Moved thread]

Andreas Masur
December 17th, 2003, 06:54 AM
LNK2001 (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/lnk2001.asp)

vicodin451
December 17th, 2003, 07:40 AM
Originally posted by Sickboy
MySDI error LNK2001: Nichtaufgelöstes externes Symbol "private: void __thiscall CMySDIView::OnUpdateMoveObject(class CCmdUI *)" (?OnUpdateMoveObject@CMySDIView@@AAEXPAVCCmdUI@@@Z)

I don't know German, but it appears to be something like "undefined external symbol CMySDIView::OnUpdateMoveObject"...

Typically, this means that the function's implementation cannot be found.
Did you perhaps "#ifdef _DEBUG" the implementation of the function?