I start from an existing simple samle available in 2.8.0 : minimal project.
No problem up to here ! It runs without problem
After all the includes, I add #include <wx/xml/xml.h>
In the OnAbout method, I add : wxXmlDocument doc; (like suggested in the documentation of wxXmlDocument delivered in 2.8.0 )
cf. atached file testxml.cpp
Compilation : OK
Link : error LNK2019 : unsolved external symbol "public: __thiscall wxXmlDocument::wxXmlDocument(void)" etc...
plus 5 additional unsolved links related to this one.
I have the same error, trying all solution fot the constructor (like wxXmlDocument *doc = new wxXmlDocument(); etc...)
In another more complex source code, I have no issue with wxXmlNode::GetProperties, wxXmlProperty::GetName etc..., but the same link error with wxXmlNode::HasProp or wxXmlNode::GetPropVal. And of course the same link error with wxXmlDocument::wxXmlDocument.
I have the last wxWidgets 2.8.0, and Microsoft Visual Studio C++ Express 2005 8.0, and no problem with other wxWidgets objetcs (frames, splitter, treectrl, ...)[/img]
thank you for your help !
error linking wxXmlDocument and wxXmlNode 2.8.0 / VC++2.5 Topic is solved
-
- In need of some credit
- Posts: 2
- Joined: Sun Feb 11, 2007 8:59 pm
error linking wxXmlDocument and wxXmlNode 2.8.0 / VC++2.5
You do not have the required permissions to view the files attached to this post.
-
- In need of some credit
- Posts: 2
- Joined: Sun Feb 11, 2007 8:59 pm
Solved , thanks
Thank you for your answer. It works.
To be clean, I've added the project C:\wxWidgets-2.8.0\build\msw\wx_xml.vcproj in my solution (like I have the two other projects C:\wxWidgets-2.8.0\build\msw\wx_core.vcproj, and C:\wxWidgets-2.8.0\build\msw\wx_base.vcproj)
Thank you very much
To be clean, I've added the project C:\wxWidgets-2.8.0\build\msw\wx_xml.vcproj in my solution (like I have the two other projects C:\wxWidgets-2.8.0\build\msw\wx_core.vcproj, and C:\wxWidgets-2.8.0\build\msw\wx_base.vcproj)
Thank you very much