Hello,
Looking at your linker errors, it seems like you're trying to link
against the wrong version of the toolkit libs. The libs you're using
were created Visual Studio 2005 or maybe even 2003, at least according
to this post:
http://groups.google.com/group/boost-list/browse_thread/thread/dd10d4aefe28c9a0
or other posts, when googling this:
error LNK2001: unresolved external symbol
std::_Container_base::~_Container_base(void)
<>
So, to fix this, you have to recompile the Toolkit using VS2008 (make
sure that you build the static version), and you have to make sure that
the Toolkit is linking the right versions of the MSVC libs.
After that, you can link your app against those Toolkit libs, and you
have to make sure that all the necessary toolkit libs are linked:
dwfcore, dwftoolkit, whip, and w3dtk.
Hope this helps,
Gyuri
tomas49 wrote:
> For example (and much more) see bellow.
> May be it is possible to change something in project setting, but I do not knou what. I use static verison of DWF libraries with preprocessor definitions:
>
> WIN32
> _DEBUG
> _WINDOWS
> DWFCORE_STATIC
> DWFTK_STATIC
> DWFTK_BUILD_EXPAT
>
> Errors:
> 1>whiptk.7.8.601.lib(file.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base::~_Container_base(void)" (__imp_??1_Container_base@std@@QAE@XZ)
>
> 1>whiptk.7.8.601.lib(opcode.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base::~_Container_base(void)" (__imp_??1_Container_base@std@@QAE@XZ)
>
> 1>dwftk.7.3.1.lib(PropertyReferenceContainer.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base::~_Container_base(void)" (__imp_??1_Container_base@std@@QAE@XZ) referenced in function __ehhandler$??H?$_Vector_iterator@IV?$allocator@I@std@@@std@@QBE?AV01@H@Z
> 1>dwftk.7.3.1.lib(ContentPresentationModelViewNode.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall
>
> std::_Container_base::_Orphan_all(void)const " (__imp_?_Orphan_all@_Container_base@std@@QBEXXZ) referenced in function "public: class std::_Tree,class std::allocator >,0> >::iterator __thiscall std::_Tree,class std::allocator >,0> >::insert(class std::_Tree,class std::allocator >,0> >::iterator,struct std::pair
lkit::DWFXMLNamespace> const &)" (?insert@?$_Tree@V?$_Tmap_traits@VDWFString@DWFCore@@VDWFXMLNamespace@DWFToolkit@@U?$less@VDWFString@DWFCore@@@std@@V?$allocator@U?$pair@$$CBVDWFString@DWFCore@@VDWFXMLNamespace@DWFToolkit@@@std@@@6@$0A@@std@@@std@@QAE?AViterator@12@V312@ABU?$pair@$$CBVDWFString@DWFCore@@VDWFXMLNamespace@DWFToolkit@@@2@@Z)
>
> 1>dwftk.7.3.1.lib(ContentPresentationDocument.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::_Container_base::_Orphan_all(void)const " (__imp_?_Orphan_all@_Container_base@std@@QBEXXZ)
>
>
> 1>dwftk.7.3.1.lib(PropertySet.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::_Container_base::_Swap_all(class std::_Container_base &)const " (__imp_?_Swap_all@_Container_base@std@@QBEXAAV12@@Z) referenced in function "public: void __thiscall std::vector >::swap(class std::vector > &)" (?swap@?$vector@PAVDWFPropertyContainer@DWFToolkit@@V?$DWFTK_STL_Allocator@PAVDWFPropertyContainer@DWFToolkit@@@2@@std@@QAEXAAV12@@Z)
> 1>dwftk.7.3.1.lib(ContentReader.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::_Container_base::_Swap_all(class std::_Container_base &)const " (__imp_?_Swap_all@_Container_base@std@@QBEXAAV12@@Z)
> 1>dwftk.7.3.1.lib(ContentElement.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::_Container_base::_Swap_all(class std::_Container_base &)const " (__imp_?_Swap_all@_Container_base@std@@QBEXAAV12@@Z)>