2004-12-03, 07:04
i'm 99% done, but have been stuck at one last part for the past week and a half (i haven't been doing much with it though lately). i currently have two functions:
bool setbookmarklocks(const cstdstring& strtype, bool bengagelocks);
bool setbookmarklocks(tixmldocument* xmldoc, const cstdstring& strtype, vecshares& items, bool bengagelocks);
the first one is used to easily update lock status from within the various guiwindow places, and actually just calls the second function with the same xbmcxml and m_vecmyfooshares objects that csettings::addbookmark uses. the second one is used within csettings::load to update the locks and xml file just after loading it with csettings:getshares. here's the problem: everything compiles, but i keep getting a link error as follows ("thiscall" was preceded by two underscores but that seems to mess up the forum post form-- it deletes everything in between the two double underscores):
xbmc error lnk2019: unresolved external symbol "public: bool thiscall csettings:etbookmarklocks(class tixmldocument *,class cstdstr<char> const &,class std::vector<class cshare,class std::allocator<class cshare> > &,bool)const " (?setbookmarklocks@csettings@@qbe_npavtixmldocument@@abv?$cstdstr@d@@aav?$vector@vcshare@@v?$allocator@vcshare@@@std@@@std@@_n@z) referenced in function "public: bool thiscall csettings::load(bool &,bool &)" (?load@csettings@@qae_naa_n0@z)
i can't figure out what would be external; both functions are in the same piece of code. the error is not very helpful at all to me, i'm still new to the world of c++. any pointers (no pun intended)?
bool setbookmarklocks(const cstdstring& strtype, bool bengagelocks);
bool setbookmarklocks(tixmldocument* xmldoc, const cstdstring& strtype, vecshares& items, bool bengagelocks);
the first one is used to easily update lock status from within the various guiwindow places, and actually just calls the second function with the same xbmcxml and m_vecmyfooshares objects that csettings::addbookmark uses. the second one is used within csettings::load to update the locks and xml file just after loading it with csettings:getshares. here's the problem: everything compiles, but i keep getting a link error as follows ("thiscall" was preceded by two underscores but that seems to mess up the forum post form-- it deletes everything in between the two double underscores):
xbmc error lnk2019: unresolved external symbol "public: bool thiscall csettings:etbookmarklocks(class tixmldocument *,class cstdstr<char> const &,class std::vector<class cshare,class std::allocator<class cshare> > &,bool)const " (?setbookmarklocks@csettings@@qbe_npavtixmldocument@@abv?$cstdstr@d@@aav?$vector@vcshare@@v?$allocator@vcshare@@@std@@@std@@_n@z) referenced in function "public: bool thiscall csettings::load(bool &,bool &)" (?load@csettings@@qae_naa_n0@z)
i can't figure out what would be external; both functions are in the same piece of code. the error is not very helpful at all to me, i'm still new to the world of c++. any pointers (no pun intended)?