wxRichTextCtrl - unresolved external symbols (Urgent help needed!!)

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
deepti
Earned some good credits
Earned some good credits
Posts: 115
Joined: Tue Jul 17, 2018 5:38 pm

wxRichTextCtrl - unresolved external symbols (Urgent help needed!!)

Post by deepti »

Hi All,

I am in need of some urgent help!!
Am trying to create an instance of wxRichTextCtrl. The documentation says that in order to use it, we need to include the header file and link with the appropriate wxWidgets library with richtext suffix, and put the rich text library first in your link line to avoid unresolved symbols.
I am doing both of these. Please find attached the screenshots of my C++ application's project properties (Visual Studio).
With this, a whole lot of new unresolved external symbols errors pop up as shown below:

What else do I need to do? Please help me urgently...

Code: Select all

>wxmsw31u_richtext.lib(richtextctrl.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in PropertiesDialog.obj
1>wxmsw31u_richtext.lib(richtextctrl.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in PropertiesDialog.obj
1>wxmsw31u_richtext.lib(dummy.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in PropertiesDialog.obj
1>wxmsw31u_richtext.lib(dummy.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in PropertiesDialog.obj
1>wxmsw31u_richtext.lib(richtextbuffer.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in PropertiesDialog.obj
1>wxmsw31u_richtext.lib(richtextbuffer.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in PropertiesDialog.obj
1>wxmsw31u_richtext.lib(richtextxml.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in PropertiesDialog.obj
1>wxmsw31u_richtext.lib(richtextxml.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in PropertiesDialog.obj
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in PropertiesDialog.obj
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in PropertiesDialog.obj
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in PropertiesDialog.obj
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in PropertiesDialog.obj
1>wxmsw31u_richtext.lib(richtextimagedlg.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in PropertiesDialog.obj
1>wxmsw31u_richtext.lib(richtextimagedlg.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in PropertiesDialog.obj
1>wxmsw31u_richtext.lib(richtextsymboldlg.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in PropertiesDialog.obj
1>wxmsw31u_richtext.lib(richtextsymboldlg.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in PropertiesDialog.obj
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>wxmsw31u_richtext.lib(richtextxml.obj) : error LNK2019: unresolved external symbol "public: __cdecl wxXmlNode::wxXmlNode(enum wxXmlNodeType,class wxString const &,class wxString const &,int)" (??0wxXmlNode@@QEAA@W4wxXmlNodeType@@AEBVwxString@@1H@Z) referenced in function "public: virtual bool __cdecl wxRichTextXMLHelper::ExportStyleDefinition(class wxXmlNode *,class wxRichTextStyleDefinition *)" (?ExportStyleDefinition@wxRichTextXMLHelper@@UEAA_NPEAVwxXmlNode@@PEAVwxRichTextStyleDefinition@@@Z)
1>wxmsw31u_richtext.lib(richtextxml.obj) : error LNK2019: unresolved external symbol "public: class wxString __cdecl wxXmlNode::GetAttribute(class wxString const &,class wxString const &)const " (?GetAttribute@wxXmlNode@@QEBA?AVwxString@@AEBV2@0@Z) referenced in function "public: virtual bool __cdecl wxRichTextImage::ImportFromXML(class wxRichTextBuffer *,class wxXmlNode *,class wxRichTextXMLHandler *,bool *)" (?ImportFromXML@wxRichTextImage@@UEAA_NPEAVwxRichTextBuffer@@PEAVwxXmlNode@@PEAVwxRichTextXMLHandler@@PEA_N@Z)
1>wxmsw31u_richtext.lib(richtextxml.obj) : error LNK2019: unresolved external symbol "public: __cdecl wxXmlDocument::wxXmlDocument(void)" (??0wxXmlDocument@@QEAA@XZ) referenced in function "protected: virtual bool __cdecl wxRichTextXMLHandler::DoLoadFile(class wxRichTextBuffer *,class wxInputStream &)" (?DoLoadFile@wxRichTextXMLHandler@@MEAA_NPEAVwxRichTextBuffer@@AEAVwxInputStream@@@Z)
1>wxmsw31u_richtext.lib(richtextxml.obj) : error LNK2019: unresolved external symbol "public: class wxXmlNode * __cdecl wxXmlDocument::GetRoot(void)const " (?GetRoot@wxXmlDocument@@QEBAPEAVwxXmlNode@@XZ) referenced in function "protected: virtual bool __cdecl wxRichTextXMLHandler::DoLoadFile(class wxRichTextBuffer *,class wxInputStream &)" (?DoLoadFile@wxRichTextXMLHandler@@MEAA_NPEAVwxRichTextBuffer@@AEAVwxInputStream@@@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "public: static class wxClassInfo wxHtmlListBox::ms_classInfo" (?ms_classInfo@wxHtmlListBox@@2VwxClassInfo@@A)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "public: static class wxClassInfo wxHtmlListBox::ms_classInfo" (?ms_classInfo@wxHtmlListBox@@2VwxClassInfo@@A)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "protected: static struct wxEventTable const wxHtmlListBox::sm_eventTable" (?sm_eventTable@wxHtmlListBox@@1UwxEventTable@@B)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "protected: static struct wxEventTable const wxHtmlListBox::sm_eventTable" (?sm_eventTable@wxHtmlListBox@@1UwxEventTable@@B)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "protected: virtual void __cdecl wxHtmlWindowMouseHelper::OnCellMouseHover(class wxHtmlCell *,int,int)" (?OnCellMouseHover@wxHtmlWindowMouseHelper@@MEAAXPEAVwxHtmlCell@@HH@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "protected: virtual void __cdecl wxHtmlWindowMouseHelper::OnCellMouseHover(class wxHtmlCell *,int,int)" (?OnCellMouseHover@wxHtmlWindowMouseHelper@@MEAAXPEAVwxHtmlCell@@HH@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "protected: virtual bool __cdecl wxHtmlWindowMouseHelper::OnCellClicked(class wxHtmlCell *,int,int,class wxMouseEvent const &)" (?OnCellClicked@wxHtmlWindowMouseHelper@@MEAA_NPEAVwxHtmlCell@@HHAEBVwxMouseEvent@@@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "protected: virtual bool __cdecl wxHtmlWindowMouseHelper::OnCellClicked(class wxHtmlCell *,int,int,class wxMouseEvent const &)" (?OnCellClicked@wxHtmlWindowMouseHelper@@MEAA_NPEAVwxHtmlCell@@HHAEBVwxMouseEvent@@@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2019: unresolved external symbol "public: __cdecl wxHtmlListBox::wxHtmlListBox(void)" (??0wxHtmlListBox@@QEAA@XZ) referenced in function "public: __cdecl wxRichTextStyleListBox::wxRichTextStyleListBox(class wxWindow *,int,class wxPoint const &,class wxSize const &,long)" (??0wxRichTextStyleListBox@@QEAA@PEAVwxWindow@@HAEBVwxPoint@@AEBVwxSize@@J@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "public: __cdecl wxHtmlListBox::wxHtmlListBox(void)" (??0wxHtmlListBox@@QEAA@XZ)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2019: unresolved external symbol "public: bool __cdecl wxHtmlListBox::Create(class wxWindow *,int,class wxPoint const &,class wxSize const &,long,class wxString const &)" (?Create@wxHtmlListBox@@QEAA_NPEAVwxWindow@@HAEBVwxPoint@@AEBVwxSize@@JAEBVwxString@@@Z) referenced in function "public: virtual bool __cdecl wxRichTextStyleComboPopup::Create(class wxWindow *)" (?Create@wxRichTextStyleComboPopup@@UEAA_NPEAVwxWindow@@@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "public: bool __cdecl wxHtmlListBox::Create(class wxWindow *,int,class wxPoint const &,class wxSize const &,long,class wxString const &)" (?Create@wxHtmlListBox@@QEAA_NPEAVwxWindow@@HAEBVwxPoint@@AEBVwxSize@@JAEBVwxString@@@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2019: unresolved external symbol "public: virtual __cdecl wxHtmlListBox::~wxHtmlListBox(void)" (??1wxHtmlListBox@@UEAA@XZ) referenced in function "int `public: __cdecl wxRichTextStyleListBox::wxRichTextStyleListBox(class wxWindow *,int,class wxPoint const &,class wxSize const &,long)'::`1'::dtor$0" (?dtor$0@?0???0wxRichTextStyleListBox@@QEAA@PEAVwxWindow@@HAEBVwxPoint@@AEBVwxSize@@J@Z@4HA)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "public: virtual __cdecl wxHtmlListBox::~wxHtmlListBox(void)" (??1wxHtmlListBox@@UEAA@XZ)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl wxHtmlListBox::RefreshRow(unsigned __int64)" (?RefreshRow@wxHtmlListBox@@UEAAX_K@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl wxHtmlListBox::RefreshRow(unsigned __int64)" (?RefreshRow@wxHtmlListBox@@UEAAX_K@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl wxHtmlListBox::RefreshRows(unsigned __int64,unsigned __int64)" (?RefreshRows@wxHtmlListBox@@UEAAX_K0@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl wxHtmlListBox::RefreshRows(unsigned __int64,unsigned __int64)" (?RefreshRows@wxHtmlListBox@@UEAAX_K0@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl wxHtmlListBox::RefreshAll(void)" (?RefreshAll@wxHtmlListBox@@UEAAXXZ)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl wxHtmlListBox::RefreshAll(void)" (?RefreshAll@wxHtmlListBox@@UEAAXXZ)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl wxHtmlListBox::SetItemCount(unsigned __int64)" (?SetItemCount@wxHtmlListBox@@UEAAX_K@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl wxHtmlListBox::SetItemCount(unsigned __int64)" (?SetItemCount@wxHtmlListBox@@UEAAX_K@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl wxHtmlListBox::OnInternalIdle(void)" (?OnInternalIdle@wxHtmlListBox@@UEAAXXZ)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl wxHtmlListBox::OnInternalIdle(void)" (?OnInternalIdle@wxHtmlListBox@@UEAAXXZ)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "protected: virtual class wxString __cdecl wxHtmlListBox::OnGetItemMarkup(unsigned __int64)const " (?OnGetItemMarkup@wxHtmlListBox@@MEBA?AVwxString@@_K@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "protected: virtual class wxString __cdecl wxHtmlListBox::OnGetItemMarkup(unsigned __int64)const " (?OnGetItemMarkup@wxHtmlListBox@@MEBA?AVwxString@@_K@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "protected: virtual class wxColour __cdecl wxHtmlListBox::GetSelectedTextColour(class wxColour const &)const " (?GetSelectedTextColour@wxHtmlListBox@@MEBA?AVwxColour@@AEBV2@@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "protected: virtual class wxColour __cdecl wxHtmlListBox::GetSelectedTextColour(class wxColour const &)const " (?GetSelectedTextColour@wxHtmlListBox@@MEBA?AVwxColour@@AEBV2@@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "protected: virtual class wxColour __cdecl wxHtmlListBox::GetSelectedTextBgColour(class wxColour const &)const " (?GetSelectedTextBgColour@wxHtmlListBox@@MEBA?AVwxColour@@AEBV2@@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "protected: virtual class wxColour __cdecl wxHtmlListBox::GetSelectedTextBgColour(class wxColour const &)const " (?GetSelectedTextBgColour@wxHtmlListBox@@MEBA?AVwxColour@@AEBV2@@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "protected: virtual void __cdecl wxHtmlListBox::OnDrawItem(class wxDC &,class wxRect const &,unsigned __int64)const " (?OnDrawItem@wxHtmlListBox@@MEBAXAEAVwxDC@@AEBVwxRect@@_K@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "protected: virtual void __cdecl wxHtmlListBox::OnDrawItem(class wxDC &,class wxRect const &,unsigned __int64)const " (?OnDrawItem@wxHtmlListBox@@MEBAXAEAVwxDC@@AEBVwxRect@@_K@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "protected: virtual int __cdecl wxHtmlListBox::OnMeasureItem(unsigned __int64)const " (?OnMeasureItem@wxHtmlListBox@@MEBAH_K@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "protected: virtual int __cdecl wxHtmlListBox::OnMeasureItem(unsigned __int64)const " (?OnMeasureItem@wxHtmlListBox@@MEBAH_K@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "protected: virtual void __cdecl wxHtmlListBox::OnDrawBackground(class wxDC &,class wxRect const &,unsigned __int64)const " (?OnDrawBackground@wxHtmlListBox@@MEBAXAEAVwxDC@@AEBVwxRect@@_K@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "protected: virtual void __cdecl wxHtmlListBox::OnDrawBackground(class wxDC &,class wxRect const &,unsigned __int64)const " (?OnDrawBackground@wxHtmlListBox@@MEBAXAEAVwxDC@@AEBVwxRect@@_K@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "protected: virtual void __cdecl wxHtmlListBox::OnLinkClicked(unsigned __int64,class wxHtmlLinkInfo const &)" (?OnLinkClicked@wxHtmlListBox@@MEAAX_KAEBVwxHtmlLinkInfo@@@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "protected: virtual void __cdecl wxHtmlListBox::OnLinkClicked(unsigned __int64,class wxHtmlLinkInfo const &)" (?OnLinkClicked@wxHtmlListBox@@MEAAX_KAEBVwxHtmlLinkInfo@@@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "private: virtual void __cdecl wxHtmlListBox::SetHTMLWindowTitle(class wxString const &)" (?SetHTMLWindowTitle@wxHtmlListBox@@EEAAXAEBVwxString@@@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "private: virtual void __cdecl wxHtmlListBox::SetHTMLWindowTitle(class wxString const &)" (?SetHTMLWindowTitle@wxHtmlListBox@@EEAAXAEBVwxString@@@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "private: virtual void __cdecl wxHtmlListBox::OnHTMLLinkClicked(class wxHtmlLinkInfo const &)" (?OnHTMLLinkClicked@wxHtmlListBox@@EEAAXAEBVwxHtmlLinkInfo@@@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "private: virtual void __cdecl wxHtmlListBox::OnHTMLLinkClicked(class wxHtmlLinkInfo const &)" (?OnHTMLLinkClicked@wxHtmlListBox@@EEAAXAEBVwxHtmlLinkInfo@@@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "private: virtual enum wxHtmlOpeningStatus __cdecl wxHtmlListBox::OnHTMLOpeningURL(enum wxHtmlURLType,class wxString const &,class wxString *)const " (?OnHTMLOpeningURL@wxHtmlListBox@@EEBA?AW4wxHtmlOpeningStatus@@W4wxHtmlURLType@@AEBVwxString@@PEAV4@@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "private: virtual enum wxHtmlOpeningStatus __cdecl wxHtmlListBox::OnHTMLOpeningURL(enum wxHtmlURLType,class wxString const &,class wxString *)const " (?OnHTMLOpeningURL@wxHtmlListBox@@EEBA?AW4wxHtmlOpeningStatus@@W4wxHtmlURLType@@AEBVwxString@@PEAV4@@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "private: virtual class wxPoint __cdecl wxHtmlListBox::HTMLCoordsToWindow(class wxHtmlCell *,class wxPoint const &)const " (?HTMLCoordsToWindow@wxHtmlListBox@@EEBA?AVwxPoint@@PEAVwxHtmlCell@@AEBV2@@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "private: virtual class wxPoint __cdecl wxHtmlListBox::HTMLCoordsToWindow(class wxHtmlCell *,class wxPoint const &)const " (?HTMLCoordsToWindow@wxHtmlListBox@@EEBA?AVwxPoint@@PEAVwxHtmlCell@@AEBV2@@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "private: virtual class wxWindow * __cdecl wxHtmlListBox::GetHTMLWindow(void)" (?GetHTMLWindow@wxHtmlListBox@@EEAAPEAVwxWindow@@XZ)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "private: virtual class wxWindow * __cdecl wxHtmlListBox::GetHTMLWindow(void)" (?GetHTMLWindow@wxHtmlListBox@@EEAAPEAVwxWindow@@XZ)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "private: virtual class wxColour __cdecl wxHtmlListBox::GetHTMLBackgroundColour(void)const " (?GetHTMLBackgroundColour@wxHtmlListBox@@EEBA?AVwxColour@@XZ)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "private: virtual class wxColour __cdecl wxHtmlListBox::GetHTMLBackgroundColour(void)const " (?GetHTMLBackgroundColour@wxHtmlListBox@@EEBA?AVwxColour@@XZ)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "private: virtual void __cdecl wxHtmlListBox::SetHTMLBackgroundColour(class wxColour const &)" (?SetHTMLBackgroundColour@wxHtmlListBox@@EEAAXAEBVwxColour@@@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "private: virtual void __cdecl wxHtmlListBox::SetHTMLBackgroundColour(class wxColour const &)" (?SetHTMLBackgroundColour@wxHtmlListBox@@EEAAXAEBVwxColour@@@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "private: virtual void __cdecl wxHtmlListBox::SetHTMLBackgroundImage(class wxBitmap const &)" (?SetHTMLBackgroundImage@wxHtmlListBox@@EEAAXAEBVwxBitmap@@@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "private: virtual void __cdecl wxHtmlListBox::SetHTMLBackgroundImage(class wxBitmap const &)" (?SetHTMLBackgroundImage@wxHtmlListBox@@EEAAXAEBVwxBitmap@@@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "private: virtual void __cdecl wxHtmlListBox::SetHTMLStatusText(class wxString const &)" (?SetHTMLStatusText@wxHtmlListBox@@EEAAXAEBVwxString@@@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "private: virtual void __cdecl wxHtmlListBox::SetHTMLStatusText(class wxString const &)" (?SetHTMLStatusText@wxHtmlListBox@@EEAAXAEBVwxString@@@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "private: virtual class wxCursor __cdecl wxHtmlListBox::GetHTMLCursor(enum wxHtmlWindowInterface::HTMLCursor)const " (?GetHTMLCursor@wxHtmlListBox@@EEBA?AVwxCursor@@W4HTMLCursor@wxHtmlWindowInterface@@@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "private: virtual class wxCursor __cdecl wxHtmlListBox::GetHTMLCursor(enum wxHtmlWindowInterface::HTMLCursor)const " (?GetHTMLCursor@wxHtmlListBox@@EEBA?AVwxCursor@@W4HTMLCursor@wxHtmlWindowInterface@@@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "char const * const wxHtmlListBoxNameStr" (?wxHtmlListBoxNameStr@@3QBDB)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "char const * const wxHtmlListBoxNameStr" (?wxHtmlListBoxNameStr@@3QBDB)
Attachments
linker-properties2.jpg
linker-properties1.jpg
Last edited by DavidHart on Sun Aug 26, 2018 4:06 pm, edited 1 time in total.
Reason: Moderator: Edited to add code-tags (see how much more readable it is now)
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4193
Joined: Sun Jan 03, 2010 5:45 pm

Re: wxRichTextCtrl - unresolved external symbols (Urgent help needed!!)

Post by PB »

For starters, you are trying to use a release version of the library in the debug version of the application - notice the missing "d" from the filename.

If you are using MSVC, I suggest not adding individual libraries by hand to the linker settings, instead just prepend $(WXWIN)\include\msvc; to the compiler include folders and the appropriate libraries will be linked automatically.
deepti
Earned some good credits
Earned some good credits
Posts: 115
Joined: Tue Jul 17, 2018 5:38 pm

Re: wxRichTextCtrl - unresolved external symbols (Urgent help needed!!)

Post by deepti »

Hi PB, thanks for your reply.

I have the same project settings for the Release mode as well. But it gives the same "unresolved symbols" error in the release build as well.
If you are using MSVC, I suggest not adding individual libraries by hand to the linker settings, instead just prepend $(WXWIN)\include\msvc; to the compiler include folders and the appropriate libraries will be linked automatically.
--->This did not help either.. and this is for compile time inclusion right? But i am getting linker errors.
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4193
Joined: Sun Jan 03, 2010 5:45 pm

Re: wxRichTextCtrl - unresolved external symbols (Urgent help needed!!)

Post by PB »

deepti wrote:I have the same project settings for the Release mode as well. But it gives the same "unresolved symbols" error in the release build as well.
You can see the unresolved errors come from XML (wxbase31u(d)_xml.lib) and HTML (wxbase31u(d)_html.lib) libraries, you need to add those as well. You should also add wxmsw31u(d)_adv.lib. Well, actually if you heed my advice from the previous post, you do not, see also the next paragraph.
deepti wrote: --->This did not help either.. and this is for compile time inclusion right? But i am getting linker errors.
This automatically links proper libraries as needed using MSVC specific #pragma comment(lib,...). This is described at the end of the MSW specific install.txt

BTW, you can see which class needs which library in its documentation. You can see which library depends on which here: http://docs.wxwidgets.org/trunk/page_libs.html. But as I wrote above, if you are using MSVC, you can avoid all this.
deepti
Earned some good credits
Earned some good credits
Posts: 115
Joined: Tue Jul 17, 2018 5:38 pm

Re: wxRichTextCtrl - unresolved external symbols (Urgent help needed!!)

Post by deepti »

Thanks a lot, PB!!! Worked perfectly!!Thanks again!
Post Reply