не могу никак заставить работать STLport
От: Аноним  
Дата: 06.10.05 18:09
Оценка:
уж не пинайте пожалуйста, расскажите, что надо сделать что б STLport 5 работал у меня на VC6.0 ??

делаю всё как в мануале, всё компилится, библиотеки в STLport/lib кладуться, в 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)


НУ ЧТО ДЕЛАТЬ?? Я уже целый день ищу информацию, перепробывал разные параметры в stl_user_config.h и _site_config.h менять — ошибки другие появляются, но заставить работать не могу.
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.