problem building with .net 2003
-
Hi, I can build my program (atl ) using visual 6.0. But if I try to build with .net2003 I get the following errors. I think it has something to do with the library file settings. Please advise. HelloHierarchy.obj : error LNK2019: unresolved external symbol "public: class std::vector >::iterator __thiscall SvIoMessageItemArray::end(void)" (?end@SvIoMessageItemArray@@QAE?AViterator@?$vector@PAVSvIoItem@@V?$allocator@PAVSvIoItem@@@std@@@std@@XZ) referenced in function "public: virtual enum tagMSGSUCCESS __thiscall HelloPollMessage::Send(class SvIoTopic *,class SvIoHierarchy *)" (?Send@HelloPollMessage@@UAE? AW4tagMSGSUCCESS@@PAVSvIoTopic@@PAVSvIoHierarchy@@ @Z) ServerBase.lib(IosItem.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void __thiscall std::basic_string,class std::allocator >::_Tidy(bool)" (__imp_?_Tidy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AAEX_N@Z)
-
Hi, I can build my program (atl ) using visual 6.0. But if I try to build with .net2003 I get the following errors. I think it has something to do with the library file settings. Please advise. HelloHierarchy.obj : error LNK2019: unresolved external symbol "public: class std::vector >::iterator __thiscall SvIoMessageItemArray::end(void)" (?end@SvIoMessageItemArray@@QAE?AViterator@?$vector@PAVSvIoItem@@V?$allocator@PAVSvIoItem@@@std@@@std@@XZ) referenced in function "public: virtual enum tagMSGSUCCESS __thiscall HelloPollMessage::Send(class SvIoTopic *,class SvIoHierarchy *)" (?Send@HelloPollMessage@@UAE? AW4tagMSGSUCCESS@@PAVSvIoTopic@@PAVSvIoHierarchy@@ @Z) ServerBase.lib(IosItem.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void __thiscall std::basic_string,class std::allocator >::_Tidy(bool)" (__imp_?_Tidy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AAEX_N@Z)
You have some sort of a header file included that declares the function/structure specified in the first error. However, you are not linking against a suitable library. Check your project settings and the function that causes the error (
HelloPollMessage::Send
). When you find the missing function, see it's reference for the library to link with. The second error if of similar sorts, however, it just says that it cannot find the definition of 'basic_string' class. Make sure you are linking against the standard C/C++ library files. Of course, you could check the VS .Net help files for the new features of ATL version 7 to see if some note there would explain your problem. The final option is to copy the ATL library files from VC++ 6.0 and link against them instead of the version 7 ones. -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.