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 » Sun Aug 26, 2018 2:30 pm

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)" ([email protected]@[email protected]@@[email protected]@[email protected]) referenced in function "public: virtual bool __cdecl wxRichTextXMLHelper::ExportStyleDefinition(class wxXmlNode *,class wxRichTextStyleDefinition *)" ([email protected]@@[email protected]@[email protected]@@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 " ([email protected]@@[email protected]@[email protected]@Z) referenced in function "public: virtual bool __cdecl wxRichTextImage::ImportFromXML(class wxRichTextBuffer *,class wxXmlNode *,class wxRichTextXMLHandler *,bool *)" ([email protected]@@[email protected]@[email protected]@[email protected]@[email protected])
1>wxmsw31u_richtext.lib(richtextxml.obj) : error LNK2019: unresolved external symbol "public: __cdecl wxXmlDocument::wxXmlDocument(void)" ([email protected]@[email protected]) referenced in function "protected: virtual bool __cdecl wxRichTextXMLHandler::DoLoadFile(class wxRichTextBuffer *,class wxInputStream &)" ([email protected]@@[email protected]@[email protected]@@Z)
1>wxmsw31u_richtext.lib(richtextxml.obj) : error LNK2019: unresolved external symbol "public: class wxXmlNode * __cdecl wxXmlDocument::GetRoot(void)const " ([email protected]@@[email protected]@XZ) referenced in function "protected: virtual bool __cdecl wxRichTextXMLHandler::DoLoadFile(class wxRichTextBuffer *,class wxInputStream &)" ([email protected]@@[email protected]@[email protected]@@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "public: static class wxClassInfo wxHtmlListBox::ms_classInfo" ([email protected]@@[email protected]@A)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "public: static class wxClassInfo wxHtmlListBox::ms_classInfo" ([email protected]@@[email protected]@A)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "protected: static struct wxEventTable const wxHtmlListBox::sm_eventTable" ([email protected]@@[email protected]@B)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "protected: static struct wxEventTable const wxHtmlListBox::sm_eventTable" ([email protected]@@[email protected]@B)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "protected: virtual void __cdecl wxHtmlWindowMouseHelper::OnCellMouseHover(class wxHtmlCell *,int,int)" ([email protected]@@[email protected]@[email protected])
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "protected: virtual void __cdecl wxHtmlWindowMouseHelper::OnCellMouseHover(class wxHtmlCell *,int,int)" ([email protected]@@[email protected]@[email protected])
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "protected: virtual bool __cdecl wxHtmlWindowMouseHelper::OnCellClicked(class wxHtmlCell *,int,int,class wxMouseEvent const &)" ([email protected]@@[email protected]@[email protected]@@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 &)" ([email protected]@@[email protected]@[email protected]@@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2019: unresolved external symbol "public: __cdecl wxHtmlListBox::wxHtmlListBox(void)" ([email protected]@[email protected]) referenced in function "public: __cdecl wxRichTextStyleListBox::wxRichTextStyleListBox(class wxWindow *,int,class wxPoint const &,class wxSize const &,long)" ([email protected]@[email protected]@@[email protected]@[email protected]@[email protected])
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "public: __cdecl wxHtmlListBox::wxHtmlListBox(void)" ([email protected]@[email protected])
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 &)" ([email protected]@@[email protected]@[email protected]@[email protected]@[email protected]@@Z) referenced in function "public: virtual bool __cdecl wxRichTextStyleComboPopup::Create(class wxWindow *)" ([email protected]@@[email protected]@@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 &)" ([email protected]@@[email protected]@[email protected]@[email protected]@[email protected]@@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2019: unresolved external symbol "public: virtual __cdecl wxHtmlListBox::~wxHtmlListBox(void)" ([email protected]@[email protected]) referenced in function "int `public: __cdecl wxRichTextStyleListBox::wxRichTextStyleListBox(class wxWindow *,int,class wxPoint const &,class wxSize const &,long)'::`1'::dtor$0" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@[email protected]@4HA)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "public: virtual __cdecl wxHtmlListBox::~wxHtmlListBox(void)" ([email protected]@[email protected])
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl wxHtmlListBox::RefreshRow(unsigned __int64)" ([email protected]@@[email protected])
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl wxHtmlListBox::RefreshRow(unsigned __int64)" ([email protected]@@[email protected])
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl wxHtmlListBox::RefreshRows(unsigned __int64,unsigned __int64)" ([email protected]@@[email protected])
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl wxHtmlListBox::RefreshRows(unsigned __int64,unsigned __int64)" ([email protected]@@[email protected])
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl wxHtmlListBox::RefreshAll(void)" ([email protected]@@UEAAXXZ)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl wxHtmlListBox::RefreshAll(void)" ([email protected]@@UEAAXXZ)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl wxHtmlListBox::SetItemCount(unsigned __int64)" ([email protected]@@[email protected])
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl wxHtmlListBox::SetItemCount(unsigned __int64)" ([email protected]@@[email protected])
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl wxHtmlListBox::OnInternalIdle(void)" ([email protected]@@UEAAXXZ)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl wxHtmlListBox::OnInternalIdle(void)" ([email protected]@@UEAAXXZ)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "protected: virtual class wxString __cdecl wxHtmlListBox::OnGetItemMarkup(unsigned __int64)const " ([email protected]@@[email protected]@[email protected])
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "protected: virtual class wxString __cdecl wxHtmlListBox::OnGetItemMarkup(unsigned __int64)const " ([email protected]@@[email protected]@[email protected])
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "protected: virtual class wxColour __cdecl wxHtmlListBox::GetSelectedTextColour(class wxColour const &)const " ([email protected]@@[email protected]@[email protected]@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "protected: virtual class wxColour __cdecl wxHtmlListBox::GetSelectedTextColour(class wxColour const &)const " ([email protected]@@[email protected]@[email protected]@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "protected: virtual class wxColour __cdecl wxHtmlListBox::GetSelectedTextBgColour(class wxColour const &)const " ([email protected]@@[email protected]@[email protected]@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "protected: virtual class wxColour __cdecl wxHtmlListBox::GetSelectedTextBgColour(class wxColour const &)const " ([email protected]@@[email protected]@[email protected]@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 " ([email protected]@@[email protected]@[email protected]@[email protected])
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 " ([email protected]@@[email protected]@[email protected]@[email protected])
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "protected: virtual int __cdecl wxHtmlListBox::OnMeasureItem(unsigned __int64)const " ([email protected]@@[email protected])
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "protected: virtual int __cdecl wxHtmlListBox::OnMeasureItem(unsigned __int64)const " ([email protected]@@[email protected])
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 " ([email protected]@@[email protected]@[email protected]@[email protected])
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 " ([email protected]@@[email protected]@[email protected]@[email protected])
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "protected: virtual void __cdecl wxHtmlListBox::OnLinkClicked(unsigned __int64,class wxHtmlLinkInfo const &)" ([email protected]@@[email protected]@@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "protected: virtual void __cdecl wxHtmlListBox::OnLinkClicked(unsigned __int64,class wxHtmlLinkInfo const &)" ([email protected]@@[email protected]@@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "private: virtual void __cdecl wxHtmlListBox::SetHTMLWindowTitle(class wxString const &)" ([email protected]@@[email protected]@@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "private: virtual void __cdecl wxHtmlListBox::SetHTMLWindowTitle(class wxString const &)" (?[email protected]@@[email protected]@@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "private: virtual void __cdecl wxHtmlListBox::OnHTMLLinkClicked(class wxHtmlLinkInfo const &)" ([email protected]@@[email protected]@@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "private: virtual void __cdecl wxHtmlListBox::OnHTMLLinkClicked(class wxHtmlLinkInfo const &)" ([email protected]@@[email protected]@@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 " ([email protected]@@[email protected]@[email protected]@[email protected]@[email protected]@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 " ([email protected]@@[email protected]@[email protected]@[email protected]@[email protected]@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 " ([email protected]@@[email protected]@[email protected]@[email protected]@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 " ([email protected]@@[email protected]@[email protected]@[email protected]@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "private: virtual class wxWindow * __cdecl wxHtmlListBox::GetHTMLWindow(void)" ([email protected]@@[email protected]@XZ)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "private: virtual class wxWindow * __cdecl wxHtmlListBox::GetHTMLWindow(void)" ([email protected]@@[email protected]@XZ)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "private: virtual class wxColour __cdecl wxHtmlListBox::GetHTMLBackgroundColour(void)const " ([email protected]@@[email protected]@XZ)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "private: virtual class wxColour __cdecl wxHtmlListBox::GetHTMLBackgroundColour(void)const " ([email protected]@@[email protected]@XZ)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "private: virtual void __cdecl wxHtmlListBox::SetHTMLBackgroundColour(class wxColour const &)" ([email protected]@@[email protected]@@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "private: virtual void __cdecl wxHtmlListBox::SetHTMLBackgroundColour(class wxColour const &)" ([email protected]@@[email protected]@@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "private: virtual void __cdecl wxHtmlListBox::SetHTMLBackgroundImage(class wxBitmap const &)" ([email protected]@@[email protected]@@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "private: virtual void __cdecl wxHtmlListBox::SetHTMLBackgroundImage(class wxBitmap const &)" ([email protected]@@[email protected]@@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "private: virtual void __cdecl wxHtmlListBox::SetHTMLStatusText(class wxString const &)" ([email protected]@@[email protected]@@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "private: virtual void __cdecl wxHtmlListBox::SetHTMLStatusText(class wxString const &)" ([email protected]@@[email protected]@@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "private: virtual class wxCursor __cdecl wxHtmlListBox::GetHTMLCursor(enum wxHtmlWindowInterface::HTMLCursor)const " ([email protected]@@[email protected]@[email protected]@@@Z)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "private: virtual class wxCursor __cdecl wxHtmlListBox::GetHTMLCursor(enum wxHtmlWindowInterface::HTMLCursor)const " ([email protected]@@[email protected]@[email protected]@@@Z)
1>wxmsw31u_richtext.lib(richtextstyles.obj) : error LNK2001: unresolved external symbol "char const * const wxHtmlListBoxNameStr" ([email protected]@3QBDB)
1>wxmsw31u_richtext.lib(richtextformatdlg.obj) : error LNK2001: unresolved external symbol "char const * const wxHtmlListBoxNameStr" ([email protected]@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: 2356
Joined: Sun Jan 03, 2010 5:45 pm

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

Post by PB » Sun Aug 26, 2018 2:43 pm

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 » Mon Aug 27, 2018 5:16 am

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: 2356
Joined: Sun Jan 03, 2010 5:45 pm

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

Post by PB » Mon Aug 27, 2018 6:13 am

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 » Mon Aug 27, 2018 10:31 am

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

Post Reply