Re[2]: не могу никак заставить работать STLport
От: Аноним  
Дата: 07.10.05 06:37
Оценка:
Здравствуйте, Yess, Вы писали:

Y>Типы библиотек(Single/Multi Thread) у либ и проектов одинаковы ?


Подскажи, пожалуйста, где подсмотреть?

я в _site_config.h ставил #define _STLP_USE_DYNAMIC_LIB и #define _STLP_USE_STATIC_LIB — ничего не помогает. В первом случае на 1 ошибку больше.
Текст:
#include "stdafx.h"
#include <string>
using namespace std;

int main(int argc, char* argv[])
{        
    string ad = "eddf";
        
    return 0;
}

#define _STLP_USE_DYNAMIC_LIB

--------------------Configuration: test_stlport — Win32 Debug--------------------
Compiling...
test_stlport.cpp
Linking...
test_stlport.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall stlpxmtx_std::allocator<char>::~allocator<char>(void)" (__imp_??1?$allocator@D@stlpxmtx_std@@QAE@XZ)
test_stlport.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall stlpxmtx_std::allocator<char>::allocator<char>(void)" (__imp_??0?$allocator@D@stlpxmtx_std@@QAE@XZ)
test_stlport.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall stlpxmtx_std::_NoMemT_str<char,class stlpxmtx_std::char_traits<char>,class stlpxmtx_std::allocator<char> >::~_NoMemT_str<char,class stlpxmtx_std::
char_traits<char>,class stlpxmtx_std::allocator<char> >(void)" (__imp_??1?$_NoMemT_str@DV?$char_traits@D@stlpxmtx_std@@V?$allocator@D@2@@stlpxmtx_std@@QAE@XZ)
test_stlport.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall stlpxmtx_std::_NoMemT_str<char,class stlpxmtx_std::char_traits<char>,class stlpxmtx_std::allocator<char> >::_NoMemT_str<char,class stlpxmtx_std::c
har_traits<char>,class stlpxmtx_std::allocator<char> >(char const *,class _NoMemT_str<char,class stlpxmtx_std::char_traits<char>,class stlpxmtx_std::allocator<char> >::allocator<char> const &)" (__imp_??0?$_NoMemT_str@DV?$char_traits@D@stlpxmtx_std@
@V?$allocator@D@2@@stlpxmtx_std@@QAE@PBDABV?$allocator@D@1@@Z)
Debug/test_stlport.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.
Creating browse info file...

test_stlport.exe — 5 error(s), 0 warning(s)


#define _STLP_USE_STATIC_LIB:

--------------------Configuration: test_stlport — Win32 Debug--------------------
Compiling...
test_stlport.cpp
Linking...
test_stlport.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)
test_stlport.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)
test_stlport.obj : error LNK2001: unresolved external symbol "void __cdecl stlpmtx_std::__stl_throw_length_error(char const *)" (?__stl_throw_length_error@stlpmtx_std@@YAXPBD@Z)
Debug/test_stlport.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.
Creating browse info file...

test_stlport.exe — 4 error(s), 0 warning(s)

 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.