Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: 7 linking errors (LNK2001) compiling emule with vs 2008  (Read 1205 times)

0 Members and 1 Guest are viewing this topic.

giquem

  • Newbie
  • *
  • Posts: 1
    • View Profile
7 linking errors (LNK2001) compiling emule with vs 2008
« on: July 25, 2014, 02:59:28 pm »
Hellow!. My first post is for ask help. These are the 7 errors:

1>Search.obj : error LNK2001: símbolo externo "public: void __thiscall CKademliaWnd::UpdateSearchGraph(class Kademlia::CLookupHistory *)" (?UpdateSearchGraph@CKademliaWnd@@QAEXPAVCLookupHistory@Kademlia@@@Z) sin resolver

1>KademliaWnd.obj : error LNK2001: símbolo externo "protected: virtual int __thiscall CKademliaWnd::OnCommand(unsigned int,long)" (?OnCommand@CKademliaWnd@@MAEHIJ@Z) sin resolver

1>KademliaWnd.obj : error LNK2001: símbolo externo "protected: void __thiscall CKademliaWnd::UpdateButtonTitle(bool)" (?UpdateButtonTitle@CKademliaWnd@@IAEX_N@Z) sin resolver

1>KademliaWnd.obj : error LNK2001: símbolo externo "protected: void __thiscall CKademliaWnd::OnNMDblclkSearchlist(struct tagNMHDR *,long *)" (?OnNMDblclkSearchlist@CKademliaWnd@@IAEXPAUtagNMHDR@@PAJ@Z) sin resolver

1>KademliaWnd.obj : error LNK2001: símbolo externo "protected: void __thiscall CKademliaWnd::OnListModifiedSearchlist(struct tagNMHDR *,long *)" (?OnListModifiedSearchlist@CKademliaWnd@@IAEXPAUtagNMHDR@@PAJ@Z) sin resolver

1>KademliaWnd.obj : error LNK2001: símbolo externo "public: void __thiscall CKademliaWnd::ShowLookupGraph(bool)" (?ShowLookupGraph@CKademliaWnd@@QAEX_N@Z) sin resolver

1>KadContactListCtrl.obj : error LNK2001: símbolo externo "public: void __thiscall CKademliaWnd::UpdateContactCount(void)" (?UpdateContactCount@CKademliaWnd@@QAEXXZ) sin resolver

1>Release_vc9\emule.exe : fatal error LNK1120: 7 externos sin resolver

All errors are related to "KademliaWnd.h", I think.  But this file is in the project, as "KademliaWnd.cpp", of course! In addition, if I look the files code, I can see this, for example:

KademliaWind.cpp:
BEGIN_MESSAGE_MAP(CKademliaWnd, CResizableDialog)
...
ON_NOTIFY(NM_DBLCLK, IDC_SEARCHLIST, OnNMDblclkSearchlist)
ON_NOTIFY(LVN_ITEMCHANGED, IDC_SEARCHLIST, OnListModifiedSearchlist)

and in KademliaWnd.h:
DECLARE_MESSAGE_MAP()
...
afx_msg void OnNMDblclkSearchlist(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnListModifiedSearchlist(NMHDR *pNMHDR, LRESULT *pResult);

KademliaWnd.cpp includes KademliaWnd.h, of course.
If it can help, I will post all the files involved in this problem. Many thanks in advance.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: 7 linking errors (LNK2001) compiling emule with vs 2008
« Reply #1 on: July 25, 2014, 10:57:59 pm »
How is this related to SFML?

In any case, you have to link the libraries you need, and make sure all the functions are defined (and possibly exported).
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: