Кто-нибудь подключал сабж к VC 6.0 ? Помогите!
Скомпилировал, пути для инклюдов и либов прописал в VC, а он не хочет линковать:
#include "stdafx.h"
#include <cstdio>
#include <iostream>
#include <string>
int main(int argc, char* argv[])
{
printf("sdsdsd");
std::cout<<"DDDDDDDDD"<<std::endl;
std::string s;
std::cin>>s;
return 0;
}
компилируется, но при линковке выдает:
Deleting intermediate files and output files for project '_test2 — Win32 Debug'.
--------------------Configuration: _test2 — Win32 Debug--------------------
Compiling...
StdAfx.cpp
Compiling...
_test2.cpp
Linking...
_test2.obj : error LNK2001: unresolved external symbol "class stlpmtx_std::basic_istream<char,class stlpmtx_std::char_traits<char> > stlpmtx_std::cin" (?cin@stlpmtx_std@@3V?$basic_istream@DV?$char_traits@D@stlpmtx_std@@@1@A)
_test2.obj : error LNK2001: unresolved external symbol "class stlpmtx_std::basic_ostream<char,class stlpmtx_std::char_traits<char> > stlpmtx_std::cout" (?cout@stlpmtx_std@@3V?$basic_ostream@DV?$char_traits@D@stlpmtx_std@@@1@A)
_test2.obj : error LNK2001: unresolved external symbol "private: static void __cdecl stlpmtx_std::D__A<0,0>::_M_deallocate(void *,unsigned int)" (?_M_deallocate@?$D__A@$0A@$0A@@stlpmtx_std@@CAXPAXI@Z)
_test2.obj : error LNK2001: unresolved external symbol "public: __thiscall stlpmtx_std::locale::~locale(void)" (??1locale@stlpmtx_std@@QAE@XZ)
_test2.obj : error LNK2001: unresolved external symbol "public: __thiscall stlpmtx_std::locale::locale(class locale::locale const &)" (??0locale@stlpmtx_std@@QAE@ABV01@@Z)
_test2.obj : error LNK2001: unresolved external symbol "protected: void __thiscall stlpmtx_std::ios_base::_M_throw_failure(void)" (?_M_throw_failure@ios_base@stlpmtx_std@@IAEXXZ)
_test2.obj : error LNK2001: unresolved external symbol "private: static void * __cdecl stlpmtx_std::D__A<0,0>::_M_allocate(unsigned int)" (?_M_allocate@?$D__A@$0A@$0A@@stlpmtx_std@@CAPAXI@Z)
_test2.obj : error LNK2001: unresolved external symbol "void __cdecl stlpmtx_std::__stl_throw_length_error(char const *)" (?__stl_throw_length_error@stlpmtx_std@@YAXPBD@Z)
_test2.obj : error LNK2001: unresolved external symbol "public: class stlpmtx_std::locale::facet * __thiscall stlpmtx_std::locale::_M_use_facet(class stlpmtx_std::locale::id const &)const " (?_M_use_facet@locale@stlpmtx_std@@QBEPAVfacet@12@ABVid@12@
@Z)
_test2.obj : error LNK2001: unresolved external symbol "public: static class stlpmtx_std::locale::id stlpmtx_std::ctype<char>::id" (?id@?$ctype@D@stlpmtx_std@@2V0locale@2@A)
_test2.obj : error LNK2001: unresolved external symbol "public: char const * __thiscall stlpmtx_std::ctype<char>::scan_not(enum stlpmtx_std::ctype_base::mask,char const *,char const *)const " (?scan_not@?$ctype@D@stlpmtx_std@@QBEPBDW4mask@ctype_base
@2@PBD1@Z)
Debug/_test2.exe : fatal error LNK1120: 11 unresolved externals
Error executing link.exe.
Creating browse info file...
_test2.exe — 12 error(s), 0 warning(s)
Уже целый день парюсь. В мане ничего толком не нашел. Установку проводил как в мане написано. В инете тоже тема не раскрыта. У всех всё нормально, а у меня такой странный глюк!
Скомпилировал, пути для инклюдов и либов прописал в VC, а он не хочет линковать:
#include "stdafx.h"
#include <cstdio>
#include <iostream>
#include <string>
int main(int argc, char* argv[])
{
printf("sdsdsd");
std::cout<<"DDDDDDDDD"<<std::endl;
std::string s;
std::cin>>s;
return 0;
}
компилируется, но при линковке выдает:
Deleting intermediate files and output files for project '_test2 — Win32 Debug'.
--------------------Configuration: _test2 — Win32 Debug--------------------
Compiling...
StdAfx.cpp
Compiling...
_test2.cpp
Linking...
_test2.obj : error LNK2001: unresolved external symbol "class stlpmtx_std::basic_istream<char,class stlpmtx_std::char_traits<char> > stlpmtx_std::cin" (?cin@stlpmtx_std@@3V?$basic_istream@DV?$char_traits@D@stlpmtx_std@@@1@A)
_test2.obj : error LNK2001: unresolved external symbol "class stlpmtx_std::basic_ostream<char,class stlpmtx_std::char_traits<char> > stlpmtx_std::cout" (?cout@stlpmtx_std@@3V?$basic_ostream@DV?$char_traits@D@stlpmtx_std@@@1@A)
_test2.obj : error LNK2001: unresolved external symbol "private: static void __cdecl stlpmtx_std::D__A<0,0>::_M_deallocate(void *,unsigned int)" (?_M_deallocate@?$D__A@$0A@$0A@@stlpmtx_std@@CAXPAXI@Z)
_test2.obj : error LNK2001: unresolved external symbol "public: __thiscall stlpmtx_std::locale::~locale(void)" (??1locale@stlpmtx_std@@QAE@XZ)
_test2.obj : error LNK2001: unresolved external symbol "public: __thiscall stlpmtx_std::locale::locale(class locale::locale const &)" (??0locale@stlpmtx_std@@QAE@ABV01@@Z)
_test2.obj : error LNK2001: unresolved external symbol "protected: void __thiscall stlpmtx_std::ios_base::_M_throw_failure(void)" (?_M_throw_failure@ios_base@stlpmtx_std@@IAEXXZ)
_test2.obj : error LNK2001: unresolved external symbol "private: static void * __cdecl stlpmtx_std::D__A<0,0>::_M_allocate(unsigned int)" (?_M_allocate@?$D__A@$0A@$0A@@stlpmtx_std@@CAPAXI@Z)
_test2.obj : error LNK2001: unresolved external symbol "void __cdecl stlpmtx_std::__stl_throw_length_error(char const *)" (?__stl_throw_length_error@stlpmtx_std@@YAXPBD@Z)
_test2.obj : error LNK2001: unresolved external symbol "public: class stlpmtx_std::locale::facet * __thiscall stlpmtx_std::locale::_M_use_facet(class stlpmtx_std::locale::id const &)const " (?_M_use_facet@locale@stlpmtx_std@@QBEPAVfacet@12@ABVid@12@
@Z)
_test2.obj : error LNK2001: unresolved external symbol "public: static class stlpmtx_std::locale::id stlpmtx_std::ctype<char>::id" (?id@?$ctype@D@stlpmtx_std@@2V0locale@2@A)
_test2.obj : error LNK2001: unresolved external symbol "public: char const * __thiscall stlpmtx_std::ctype<char>::scan_not(enum stlpmtx_std::ctype_base::mask,char const *,char const *)const " (?scan_not@?$ctype@D@stlpmtx_std@@QBEPBDW4mask@ctype_base
@2@PBD1@Z)
Debug/_test2.exe : fatal error LNK1120: 11 unresolved externals
Error executing link.exe.
Creating browse info file...
_test2.exe — 12 error(s), 0 warning(s)
Уже целый день парюсь. В мане ничего толком не нашел. Установку проводил как в мане написано. В инете тоже тема не раскрыта. У всех всё нормально, а у меня такой странный глюк!