No other errors, I believe the problem results from me sucking at multiple files(before this, I've always mashed everything into the same file because multiple files resulted in frustration). I've tried the same code in a single file and it works fine. The top frame and a list control both have an event table in their own files, sepperate from real code. I get the feeling that it's something easy causing it, so I'm not going to post any code unless it's not as common as I think..TopFrame.obj : error LNK2005: "protected: virtual struct wxEventTable const * __thiscall LCtrl::GetEventTable(void)const " (?GetEventTable@LCtrl@@MBEPBUwxEventTable@@XZ) already defined in ListCTRL.obj
TopFrame.obj : error LNK2005: "protected: virtual class wxEventHashTable & __thiscall LCtrl::GetEventHashTable(void)const " (?GetEventHashTable@LCtrl@@MBEAAVwxEventHashTable@@XZ) already defined in ListCTRL.obj
TopFrame.obj : error LNK2005: "public: void __thiscall LCtrl::Insert(class wxListEvent &)" (?Insert@LCtrl@@QAEXAAVwxListEvent@@@Z) already defined in ListCTRL.obj
TopFrame.obj : error LNK2005: "public: void __thiscall LCtrl::Delete(class wxListEvent &)" (?Delete@LCtrl@@QAEXAAVwxListEvent@@@Z) already defined in ListCTRL.obj
TopFrame.obj : error LNK2005: "protected: static struct wxEventTable const LCtrl::sm_eventTable" (?sm_eventTable@LCtrl@@1UwxEventTable@@B) already defined in ListCTRL.obj
TopFrame.obj : error LNK2005: "private: static struct wxEventTableEntry const * const LCtrl::sm_eventTableEntries" (?sm_eventTableEntries@LCtrl@@0QBUwxEventTableEntry@@B) already defined in ListCTRL.obj
TopFrame.obj : error LNK2005: "protected: static class wxEventHashTable LCtrl::sm_eventHashTable" (?sm_eventHashTable@LCtrl@@1VwxEventHashTable@@A) already defined in ListCTRL.obj
Debug/wxMP.exe : fatal error LNK1169: one or more multiply defined symbols found
Code: Select all
BEGIN_EVENT_TABLE(LCtrl, wxListCtrl)
EVT_LIST_INSERT_ITEM(LIST_CTRL, LCtrl::Insert)
EVT_LIST_DELETE_ITEM(LIST_CTRL, LCtrl::Delete)
END_EVENT_TABLE()
BEGIN_EVENT_TABLE(TopFr, wxFrame)
EVT_MENU(ID_Quit, TopFr::OnQuit)
EVT_MENU(ID_About, TopFr::OnAbout)
EVT_MENU(ID_Pick, TopFr::OnPick)
EVT_MENU(ID_Save, TopFr::OnSave)
EVT_MENU(ID_SaveAs, TopFr::OnSaveAs)
EVT_MENU(ID_Load, TopFr::OnLoad)
END_EVENT_TABLE()
This is in VS.NET 2003**