[Fwd: Re: [litwindow-users] Re: unresolved external symbol]
Status: Alpha
Brought to you by:
hajokirchhoff
From: Jake S. <ja...@za...> - 2004-11-28 02:32:03
|
Hajo Kirchhoff wrote: > I cannot remember if I the library already includes the wxString data > adapter. Could you please try this: I think it does, rssreader is fine with wxString and wxDateTime. > remove all members from Company except m_compName > change wxString m_compName to string m_compName... > change string m_compName to int m_compName... > try again and post the results here. In MainFrame.h struct Company { int m_compName; }; In MainFrame.cpp #include <litwindow/dataadapter.h> using namespace litwindow; BEGIN_ADAPTER(Company) PROP(m_compName) END_ADAPTER() I got exactly the same result, everything compiled and then had trouble linking. Linking... Creating library Debug/RossClient.lib and object Debug/RossClient.exp MainFrame.obj : error LNK2001: unresolved external symbol "void __cdecl litwindow::not_implemented(class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &)" (?not_implemented@litwindow@@YAXABV?$basic_string@ DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@@Z) Debug/RossClient.exe : fatal error LNK1120: 1 unresolved externals When I used string for m_compName; Linking... Creating library Debug/RossClient.lib and object Debug/RossClient.exp MainFrame.obj : error LNK2001: unresolved external symbol "void __cdecl litwindow::not_implemented(class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &)" (?not_implemented@litwindow@@YAXABV?$basic_string@ DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@@Z) MainFrame.obj : error LNK2001: unresolved external symbol "public: static class litwindow::converter_base * __cdecl litwindow::prop_type_object<class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > >::get(class _S TL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const *)" (?get@?$prop_type_object@V?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@@litwindow@@SAPAVconverter_base@2@PBV?$basic_string@DV?$char_traits@ D@_STL@@V?$allocator@D@2@@_STL@@@Z) Debug/RossClient.exe : fatal error LNK1120: 2 unresolved externals I had an extra unresolved external. > > Are you building debug or release version? Are you using the visual > studio compiler? I am using the debug lib version of litwindow on XP SP2, VC++6, wx2.5.3, and STLport (sorry for not including that basic info) > > Regards > > Hajo > > P.S. I am currently meeting with Julian Smart in Edinburgh so you can > expect more and better wxWidgets integration in the future. Being in > Edinburgh also means that I might be more slow to answer. I saw that on the litWindow website - can only be a good thing :) I'm sure that this problem is to do with me, but I'm stumped as to what it is - I am linking to both lwbase_md.lib and lwwx_md.lib. Regards Jake |