Windows SDK cannot be used other than Visual Studio 2008?

Windows SDK cannot be used other than Visual Studio 2008?

Hi, I tried the SDK for Windows and the library seemed be be compiled with Visual Studio 2008. The library cannot be compiled using other Visual Studio versions. (A lot of link errors from adpcore.lib for these cases). These may mean that all my program code (or the main program if lucky) be compiled with Visual Studio 2008. This little library seems to give to much difficult and trouble for moving a big thing on.
7 帖子 / 0 全新
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项

Color Storm,

While Visual Studio 2008 is the only currently supported IDE for Windows ATOM development, other IDEs have been used successfully by other developers. We just have to remember that Intel does not support them at this time. For example, Visual Studio 2010 can be configured to compile in the same manner as Visual Studio 2008, resulting in an identical binary.

What are the linker errors you are experiencing? Perhaps I can lend some assistance.

Hello

I have checked the sdk with visual studio 2010 edition and there exist some problems.Even after linking all library files and include header files the compiler is reporting some errors as below.But I experienced the same errors with 2008 version also.After I configured some properties of the compiler it worked fine.So I hope 2010 version can also be used since both use same sort of compilers.

adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string,class std::allocator >::~basic_string,class std::allocator >(void)" (__imp_??1?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@XZ) referenced in function "public: virtual __thiscall com::intel::adp::XmlElement::~XmlElement(void)" (??1XmlElement@adp@intel@com@@UAE@XZ)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::_String_iterator,class std::allocator > __thiscall std::basic_string,class std::allocator >::begin(void)" (__imp_?begin@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE?AV?$_String_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ) referenced in function "public: __thiscall com::intel::adp::XmlElement::XmlElement(class std::basic_string,class std::allocator > const &,class std::basic_string,class std::allocator > const &)" (??0XmlElement@adp@intel@com@@QAE@ABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@0@Z)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::_String_iterator,class std::allocator > __thiscall std::basic_string,class std::allocator >::end(void)" (__imp_?end@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE?AV?$_String_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ) referenced in function "public: __thiscall com::intel::adp::XmlElement::XmlElement(class std::basic_string,class std::allocator > const &,class std::basic_string,class std::allocator > const &)" (??0XmlElement@adp@intel@com@@QAE@ABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@0@Z)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string,class std::allocator >::basic_string,class std::allocator >(class std::basic_string,class std::allocator > const &)" (__imp_??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV01@@Z) referenced in function "public: __thiscall com::intel::adp::XmlElement::XmlElement(class std::basic_string,class std::allocator > const &,class std::basic_string,class std::allocator > const &)" (??0XmlElement@adp@intel@com@@QAE@ABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@0@Z)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string,class std::allocator > & __thiscall std::basic_string,class std::allocator >::operator=(class std::basic_string,class std::allocator > const &)" (__imp_??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@ABV01@@Z) referenced in function "public: __thiscall com::intel::adp::XmlElement::XmlElement(class com::intel::adp::XmlElement const &)" (??0XmlElement@adp@intel@com@@QAE@ABV0123@@Z)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string,class std::allocator >::basic_string,class std::allocator >(struct std::basic_string,class std::allocator >::_Has_debug_it)" (__imp_??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@U_Has_debug_it@01@@Z) referenced in function "public: __thiscall com::intel::adp::XmlElement::XmlElement(class com::intel::adp::XmlElement const &)" (??0XmlElement@adp@intel@com@@QAE@ABV0123@@Z)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl std::operator==,class std::allocator >(class std::basic_string,class std::allocator > const &,class std::basic_string,class std::allocator> const &)" (__imp_??$?8_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@0@Z) referenced in function "public: virtual bool __thiscall com::intel::adp::XmlElement::operator==(class com::intel::adp::XmlElement const &)" (??8XmlElement@adp@intel@com@@UAE_NABV0123@@Z)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl std::operator<,class std::allocator >(class std::basic_string,class std::allocator > const &,class std::basic_string,class std::allocator > const &)" (__imp_??$?M_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@0@Z) referenced in function "public: virtual bool __thiscall com::intel::adp::XmlElement::operator<(class com::intel::adp::XmlElement const &)" (??MXmlElement@adp@intel@com@@UAE_NABV0123@@Z)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: wchar_t const * __thiscall std::basic_string,class std::allocator >::c_str(void)const " (__imp_?c_str@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEPB_WXZ) referenced in function "public: virtual enum com::intel::adp::XmlRetCode_ __thiscall com::intel::adp::XmlElement::Write(class std::basic_fstream > &)const " (?Write@XmlElement@adp@intel@com@@UBE?AW4XmlRetCode_@234@AAV?$basic_fstream@_WU?$char_traits@_W@std@@@std@@@Z)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall std::basic_string,class std::allocator >::empty(void)const " (__imp_?empty@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE_NXZ) referenced in function "public: virtual enum com::intel::adp::XmlRetCode_ __thiscall com::intel::adp::XmlElement::Write(class std::basic_fstream > &)const " (?Write@XmlElement@adp@intel@com@@UBE?AW4XmlRetCode_@234@AAV?$basic_fstream@_WU?$char_traits@_W@std@@@std@@@Z)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::basic_fstream >::`vbase destructor'(void)" (__imp_??_D?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ) referenced in function "public: virtual __thiscall com::intel::adp::XmlWriter::~XmlWriter(void)" (??1XmlWriter@adp@intel@com@@UAE@XZ)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::basic_fstream >::open(wchar_t const *,int,int)" (__imp_?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WHH@Z) referenced in function "public: __thiscall com::intel::adp::XmlWriter::XmlWriter(class std::basic_string,class std::allocator > const &)" (??0XmlWriter@adp@intel@com@@QAE@ABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@Z)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_fstream >::basic_fstream >(void)" (__imp_??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@XZ) referenced in function "public: __thiscall com::intel::adp::XmlWriter::XmlWriter(class std::basic_string,class std::allocator > const &)" (??0XmlWriter@adp@intel@com@@QAE@ABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@Z)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::basic_fstream >::close(void)" (__imp_?close@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ) referenced in function "public: virtual __thiscall com::intel::adp::XmlWriter::~XmlWriter(void)" (??1XmlWriter@adp@intel@com@@UAE@XZ)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::_Container_base_secure::_Orphan_all(void)const " (__imp_?_Orphan_all@_Container_base_secure@std@@QBEXXZ) referenced in function "public: class std::vector > & __thiscall std::vector >::operator=(class std::vector > const &)" (??4?$vector@VXmlAttribute@adp@intel@com@@V?$allocator@VXmlAttribute@adp@intel@com@@@std@@@std@@QAEAAV01@ABV01@@Z)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base_secure::~_Container_base_secure(void)" (__imp_??1_Container_base_secure@std@@QAE@XZ) referenced in function "protected: __thiscall std::_Container_base_aux_alloc_empty >::~_Container_base_aux_alloc_empty >(void)" (??1?$_Container_base_aux_alloc_empty@V?$allocator@VXmlAttribute@adp@intel@com@@@std@@@std@@IAE@XZ)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string,class std::allocator >::~basic_string,class std::allocator >(void)" (__imp_??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) referenced in function "protected: static void __cdecl std::vector >::_Xlen(void)" (?_Xlen@?$vector@VXmlAttribute@adp@intel@com@@V?$allocator@VXmlAttribute@adp@intel@com@@@std@@@std@@KAXXZ)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string,class std::allocator >::basic_string,class std::allocator >(char const *)" (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) referenced in function "protected: static void __cdecl std::vector >::_Xlen(void)" (?_Xlen@?$vector@VXmlAttribute@adp@intel@com@@V?$allocator@VXmlAttribute@adp@intel@com@@@std@@@std@@KAXXZ)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string,class std::allocator >::basic_string,class std::allocator >(class std::basic_string,class std::allocator > const &)" (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) referenced in function "public: __thiscall std::logic_error::logic_error(class std::basic_string,class std::allocator > const &)" (??0logic_error@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall std::basic_string,class std::allocator >::c_str(void)const " (__imp_?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) referenced in function "public: virtual char const * __thiscall std::logic_error::what(void)const " (?what@logic_error@std@@UBEPBDXZ)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base_secure::_Container_base_secure(void)" (__imp_??0_Container_base_secure@std@@QAE@XZ) referenced in function "protected: __thiscall std::_Container_base_aux_alloc_empty >::_Container_base_aux_alloc_empty >(class std::allocator)" (??0?$_Container_base_aux_alloc_empty@V?$allocator@VXmlAttribute@adp@intel@com@@@std@@@std@@IAE@V?$allocator@VXmlAttribute@adp@intel@com@@@1@@Z)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall std::ios_base::width(int)" (__imp_?width@ios_base@std@@QAEHH@Z) referenced in function "class std::basic_ostream > & __cdecl std::operator<< >(class std::basic_ostream > &,wchar_t const *)" (??$?6_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AAV10@PB_W@Z)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall std::basic_streambuf >::sputn(wchar_t const *,int)" (__imp_?sputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHPB_WH@Z) referenced in function "class std::basic_ostream > & __cdecl std::operator<< >(class std::basic_ostream > &,wchar_t const *)" (??$?6_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AAV10@PB_W@Z)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static bool __cdecl std::char_traits::eq_int_type(unsigned short const &,unsigned short const &)" (__imp_?eq_int_type@?$char_traits@_W@std@@SA_NABG0@Z) referenced in function "class std::basic_ostream > & __cdecl std::operator<< >(class std::basic_ostream > &,wchar_t const *)" (??$?6_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AAV10@PB_W@Z)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static unsigned short __cdecl std::char_traits::eof(void)" (__imp_?eof@?$char_traits@_W@std@@SAGXZ) referenced in function "class std::basic_ostream > & __cdecl std::operator<< >(class std::basic_ostream > &,wchar_t const *)" (??$?6_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AAV10@PB_W@Z)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall std::ios_base::width(void)const " (__imp_?width@ios_base@std@@QBEHXZ) referenced in function "class std::basic_ostream > & __cdecl std::operator<< >(class std::basic_ostream > &,wchar_t const *)" (??$?6_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AAV10@PB_W@Z)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static unsigned int __cdecl std::char_traits::length(wchar_t const *)" (__imp_?length@?$char_traits@_W@std@@SAIPB_W@Z) referenced in function "class std::basic_ostream > & __cdecl std::operator<< >(class std::basic_ostream > &,wchar_t const *)" (??$?6_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AAV10@PB_W@Z)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::basic_streambuf >::_Lock(void)" (__imp_?_Lock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ) referenced in function "public: __thiscall std::basic_ostream >::_Sentry_base::_Sentry_base(class std::basic_ostream > &)" (??0_Sentry_base@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE@AAV12@@Z)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::basic_streambuf >::_Unlock(void)" (__imp_?_Unlock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ) referenced in function "public: __thiscall std::basic_ostream >::_Sentry_base::~_Sentry_base(void)" (??1_Sentry_base@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE@XZ)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: wchar_t * __thiscall std::basic_string,class std::allocator >::_Myptr(void)" (__imp_?_Myptr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEPA_WXZ) referenced in function "public: wchar_t const & __thiscall std::_String_const_iterator,class std::allocator >::operator*(void)const " (??D?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEAB_WXZ)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::basic_string,class std::allocator >::swap(class std::basic_string,class std::allocator > &)" (__imp_?swap@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXAAV12@@Z) referenced in function "void __cdecl std::swap,class std::allocator >(class std::basic_string,class std::allocator > &,class std::basic_string,class std::allocator > &)" (??$swap@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@YAXAAV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@0@Z)
adpcored.lib(ADPXmlWriter.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string,class std::allocator >::basic_string,class std::allocator >(wchar_t const *)" (__imp_??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_W@Z) referenced in function "void __cdecl com::intel::adp::`dynamic initializer for 'XmlHeader''(void)" (??__EXmlHeader@adp@intel@com@@YAXXZ)
C:\Documents and Settings\Akshaynath\Desktop\APPLICATION\app1\Debug\app1.exe : fatal error LNK1120: 32 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Hello

If you are facing much trouble in compiling with the sdk I will try to post a video about configuring the Visual Studio Versions with the sdk.

The answer for Visual Studio 2010 is the "Toolset Version" property. it needs to be set to v90. Please see this link for more detail:

http://appdeveloper.intel.com/en-us/node/1519#comment-3951

I didn't try Visual Studio 2010. My program is maintained by Visual Studio 6.0 SP1 for years. The SDK cannot be used in Visual Studio 6.0. And also I tried Visual Studio .NET and Visual Studio 2005, there are also a lot of link errors but get less when the version is higher.

I now have successfully compiled and linked with Visual Studio 2008. But it took me several days to debug some very strange problems causing by the compile environment change( Visual Studio 6.0 to Visual Studio 2008 is a big change).

Haifeng Chen

Haifeng,

I am happy to hear that you were able to port your application. Please let me know if you run into any issues that I can assist you with. Enjoy VS 2008.

发表评论

登录添加评论。还不是成员?立即加入