Archived

This forum has been archived. Please start a new discussion on GitHub.

VC7.1 compile ICE1.5.1 error

hi :
I can not compile the Ice1.5.1? please help me, thank you!


IceUtil error LNK2019: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??6std@@0@AAV10@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z) ,"public: virtual void __thiscall IceUtil::Exception::ice_print(class std::basic_ostream<char,struct std::char_traits<char> > &)const " (?ice_print@Exception@IceUtil@@Z)
IceUtil error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??6std@@0@AAV10@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z)
IceUtil error LNK2019: unresolved external symbol "__declspec(dllimport) class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,char)" (__imp_??6std@@0@AAV10@D@Z) "public: virtual void __thiscall IceUtil::Exception::ice_print(class std::basic_ostream<char,struct std::char_traits<char> > &)const " (?ice_print@Exception@IceUtil@@Z)
IceUtil error LNK2001: unresolved external symbol "__declspec(dllimport) class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,char)" (__imp_??6std@@0@AAV10@D@Z)
IceUtil error LNK2001: unresolved external symbol "__declspec(dllimport) class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,char const *)" (__imp_??6std@@0@AAV10@PBD@Z)
IceUtil error LNK2019: unresolved external symbol "__declspec(dllimport) class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,char const *)" (__imp_??6std@@0@AAV10@PBD@Z) , "public: virtual void __thiscall IceUtil::Exception::ice_print(class std::basic_ostream<char,struct std::char_traits<char> > &)const " (?ice_print@Exception@IceUtil@@Z)

Comments

  • Are you using VC7.1 with STLport? If so, this is not necessary, you can use the STL library that is included in VC 7.1. If you want to use STLport nevertheless, then you must first compile it with VC 7.1, and make sure to link with it.